CX
Classes | Enumerations
Message Logging

Classes

struct  CX::CX_Logger::MessageFlushData
 
class  CX::CX_Logger
 

Enumerations

enum  CX::CX_Logger::Level {
  LOG_ALL = 0, LOG_VERBOSE = 1, LOG_NOTICE = 2, LOG_WARNING = 3,
  LOG_ERROR = 4, LOG_FATAL_ERROR = 5, LOG_NONE = 6
}
 

Detailed Description

This module is designed for logging error, warnings, and other messages. The primary interface is the CX_Logger class, in particular the preinstantiated CX::Instances::Log.

Enumeration Type Documentation

enum CX::CX_Logger::Level
strong

Log levels for log messages. Depending on the log level chosen, the name of the level will be printed before the message. Depending on the settings set using level(), levelForConsole(), or levelForFile(), if the log level of a message is below the level set for the module or logging target it will not be printed. For example, if LOG_ERROR is the level for the console and LOG_NOTICE is the level for the module "test", then messages logged to the "test" module will be completely ignored if at verbose level (because of the module setting) and will not be printed to the console if they are below the level of an error (because of the console setting).