ZEST / base.logger / Module: base-logger/appenders/console

base-logger/appenders/console

require("base-logger/appenders/console")(group, pattern) → {module:base-logger~LoggerBase}

This function returns a logger which logs a decorated message at the console.

Parameters:
Name Type Argument Description
group String

the name of the group for which the logger should be returned

pattern string | module:base-logger~LogPattern <optional>

the pattern used for formatting the logs. If the value is a string, the same pattern will be used for logging debug, info, warn and error messages. See module:base-logger~LogPattern for details on how patterns are used.

Source:
Returns:

an object with debug, info, warn and error functions.

Type
module:base-logger~LoggerBase

console appender is used by the logger to log messages in console

Source:

Requires