Skip to content

DecisionSolver/SelfLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SelfLogger

Self Logger (cout-like) For All Our Repos

How To Use:

1. Clone this repo like a submodule

2. Somewhere in your code define the following lines of code to set up log files and their type of Level Debug

#if __has_include("logger.h")
CppLogger::registerTarget(new FileLoggerTarget("./render-system-all.log", LogLevel::LOG_LEVEL_DEBUG));
CppLogger::registerTarget(new FileLoggerTarget("./render-system-err.log", LogLevel::LOG_LEVEL_ERROR));
#endif

3. And then use it like this:

With Params (Have Postfix Letter "F")

Logger_Fatal_F("Unexpected arguments: %s", renderTypeArg.c_str())

Or

Logger_Warn("Build demo scene")

4. Profit!

About

Self Logger (cout-like) For All Our Repos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •