Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const { Logger, ConsoleTransport } = require('egg-logger');
const { consoleFormatter } = require('egg-logger/lib/utils');
const logger = new Logger();
logger.set('console', new ConsoleTransport({
level: 'INFO',
formatter: consoleFormatter,
}));
module.exports = logger;
'use strict';
const Logger = require('egg-logger').Logger;
const ConsoleTransport = require('egg-logger').ConsoleTransport;
const logger = new Logger();
logger.set('console', new ConsoleTransport({
level: 'DEBUG',
}));
module.exports = logger;