Asymmetrik/node-rest-starter

View on GitHub
src/lib/winston.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function createLogger has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createLogger(loggerName: string) {
    const loggerConfig = config.get<IConfig>('logger').get<IConfig>(loggerName);

    const options = {
        format: combine(timestamp(), errors({ stack: true }), splat(), json()),
Severity: Minor
Found in src/lib/winston.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status