Chapter 5. Application logging

The x::logger class provides facilities for flexible application logging. The class is not used directly. Rather, various macros, described in the class documentation, define logging scopes and messages.

Logging is configured in the application properties file. The default logging levels, in the order of increased priority, are trace, debug, info, warning, error, and fatal, with a corresponding macro that generates a log entry for each logging level. The default logging level is error, and may be adjusted, for individual logging scopes, in the application properties. Setting a log level enables all log messages at or above the set log level. For example, setting a log level to info enables all info, warning, error, and fatal log entries for the given scope.

See the logger class documentation for more information.

See also: maillogs(1)