UNPKG

@trojs/logger

Version:

Winston logger for TroJS

33 lines (25 loc) 602 B
/* eslint-disable sonarjs/public-static-readonly */ import { Enum } from '@trojs/enum' /** * @typedef LevelType * @property {string} info "info" * @property {string} fatal "fatal" * @property {string} error "error" * @property {string} warn "warn" * @property {string} debug "debug" * @property {string} trace "trace" */ /** * Level enum * @augments Enum * @readonly * @enum { LevelType } */ export default class Level extends Enum { static info = 'info' static fatal = 'fatal' static error = 'error' static warn = 'warn' static debug = 'debug' static trace = 'trace' }