logog
logger optimized for games
|
In order to log events in your code, it's important to first understand the logging levels that are available to you. Out of the box, logog comes with these logging levels, which are compatible with the syslog standard:
So, the lower the level number is, the more important the logging message is.
To log an event in your code, there exists macros for each of the logging levels. So, for example, to log an event of level WARN3, you would use the following macro in your code:
It can get laborious to type the LOGOG_ prefix on all log messages, so, if the LOGOG_USE_PREFIX macro is not defined, you may use these shorter alternate logging forms:
If you want to generate a log message of some user-specified level, check out the LOGOG_LEVEL_MESSAGE macro.
Keep in mind that you must instantiate at least one Target object in your application for log messages to have any effect.