YAP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions
logging.h File Reference

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)
 

Detailed Description

Logging system using easylogging++.

Usage: you have to include this header and call the following macro line in your program:

#include "logging.h"
INITIALIZE_EASYLOGGINGPP

To create a log message, put the following line into the code:

LOG(level) << "put your log message here";

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

Macro Definition Documentation

#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