src/lib/winston.ts
Function createLogger
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createLogger(loggerName: string) {
const loggerConfig = config.get<IConfig>('logger').get<IConfig>(loggerName);
const options = {
format: combine(timestamp(), errors({ stack: true }), splat(), json()),