log4js-api icon indicating copy to clipboard operation
log4js-api copied to clipboard

Define custom levels

Open kevintechie opened this issue 3 years ago • 0 comments

It would be nice to define custom log levels in a similar way to the full log4js to avoid TypeScript compile errors.

Using a custom log level (e.g.: this.log.verbose('some msg') causes a compiler error: Property 'verbose' does not exist on type 'Logger'.

Using @ts-ignore doesn't scale well and typing log4js as any is hacky and dangerous.

kevintechie avatar Aug 31 '22 01:08 kevintechie