Skip to content
A Logback port to Magik
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Quick intro

    _local l_logger << logback4m:logger_factory.get_logger(:example_logger)
    l_logger.debug("log message")

Line 2 reads config.xml and configures the logger. Config.xml is found the resources directory of the logback4m module. The options/format for this file can be found at Logback manual - configuration.

Line 3 creates a new logger with the name example_logger. Default log levels (for the root-logger) are defined in config.xml.

Line 4 logs a debug message. If the default (root logger) level is high enough, the message will be logged, otherwise not.

Logback4M is licensed under the Simplified BSD License.

Something went wrong with that request. Please try again.