YAP
|
Logging system using easylogging++. More...
#include "easylogging++.h"
Go to the source code of this file.
Namespaces | |
yap | |
Macros | |
#define | Max_Log_File_Size 1000 |
#define | DEBUG(x) LOG(DEBUG) << x; |
#define | FDEBUG(x) LOG(DEBUG) << std::string(ELPP_FUNC) + ": " << x; |
#define | FLOG(x) LOG( x ) << std::string(ELPP_FUNC) + ": " |
Functions | |
void | disableLogs (el::Level lvl) |
void | plainLogs (el::Level lvl) |
Logging system using easylogging++.
Usage: you have to include this header and call the following macro line in your program:
To create a log message, put the following line into the code:
Available levels: INFO, WARNING, DEBUG, ERROR, FATAL, TRACE, VERBOSE
To completely disable DEBUG logging messages on preprocessor level, use the macro DEBUG(...), and define ELPP_DISABLE_DEBUG_LOGS
A complete manual for easylogging++ is available at: https://github.com/easylogging/easyloggingpp/blob/master/README.md
#define DEBUG | ( | x | ) | LOG(DEBUG) << x; |
Provides way to have debug output ignored by the compiler.
#define FDEBUG | ( | x | ) | LOG(DEBUG) << std::string(ELPP_FUNC) + ": " << x; |
Provides way to have debug output ignored by the compiler. Pretty logging output: prepends function name to x
#define FLOG | ( | x | ) | LOG( x ) << std::string(ELPP_FUNC) + ": " |
Pretty logging output: prepends function name to x