Reorder logging levels to reduce debug noise
Is your feature request related to a problem? Please describe. Currently I find it difficult to effectively reduce noise in my signale logging due to how the logging levels are set up.
Traditionally with logging libraries I've used, the debug level would be higher in the chain than info. This allows me to set logging level as info and ignore all debug information. From what I can see, this isn't possible in signale because setting log level to info will include debug (and setting to debug will exclude info).
Describe the solution you'd like Follow the conventional logging levels used by libraries such as winston (https://github.com/winstonjs/winston#logging-levels), with the priority order as follows:
- error
- warn
- info
- timer
- debug
Alternatively provide an array based API, allowing specific levels to be given (e.g. { logLevel: ['error', 'info', 'timer'] }). This would help avoid breaking changes but would be a slightly more complex solution.
Source: klaudiosinani/signale