All files logger.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 143x               3x 32x        
import {Logger} from 'tslog';
import {ILogObj} from 'tslog/dist/types/interfaces';
 
/**
 * Instantiates the Logger for a given name. The name is usually the class name, so that it makes it easier to debug the code.
 *
 * @param name Name of the instantiated logger
 */
export function getLogger(name: string) {
    return new Logger<ILogObj>({
        name: name,
    });
}