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 |
- Source:
Returns:
an object with debug
, info
, warn
and error
functions.
console appender is used by the logger to log messages in console
- Source: