Next: Adding Components
Up: Using the Log Class
Previous: Using the Log Class
Contents
Index
It is sometimes necessary to specify what output level of the message
should be.
There are 4 log levels to choose from
- ERROR_LOG - used for error messages
- WARNING_LOG - used for warning messages
- DEBUG_LOG - used for debugging messages
- VARIABLE_LOG - highly detailed debugging messages
The default value used is ERROR_LOG; to change the level use:
Log::logger()->set_level(Log::NEW_LOG_LEVEL);
Next, output the log message using:
Log::logger()->OUTPUT_FUNC;
where OUTPUT_FUNC is one of the following:
- error(string) - log an error message
- warn(string) - log a warning message
- debug(string) - log a debugging message
- variable(string) - log a very detailed
debugging message
2013-06-11