#Custom log levels
12 messages · Page 1 of 1 (latest)
I believe this is outlined in the docs if you search for Logger
Not exactly, because the Logger service has only a fixed amount of log levels
So if I want to add something like silly that does not fit
Yeah, you can't use the NestJS logger interface, but you can extend it and use that
And how do I extend it?
Or do you mean extending the class?
And what is the correct logger to extend? Logger or ConsoleLogger?
Also, setLogLevels expects only a subset of the predefined log levels
Or how would I extend that in super?
Maybe the Log levels type should also be an interface to it could be augmented?
Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).