MCPcopy Index your code
hub / github.com/log4js-node/log4js-node / getLogger

Function getLogger

lib/log4js.js:156–166  ·  view source on GitHub ↗

* Get a logger instance. * @static * @param {string} [category=default] * @return {Logger} instance of logger for the category

(category)

Source from the content-addressed store, hash-verified

154 * @return {Logger} instance of logger for the category
155 */
156function getLogger(category) {
157 if (!enabled) {
158 configure(
159 process.env.LOG4JS_CONFIG || {
160 appenders: { out: { type: 'stdout' } },
161 categories: { default: { appenders: ['out'], level: 'OFF' } },
162 }
163 );
164 }
165 return new Logger(category || 'default');
166}
167
168/**
169 * @name log4js

Callers 1

test.tsFile · 0.90

Calls 1

configureFunction · 0.70

Tested by

no test coverage detected