v1.5.0
New Features
- Added
config.level
to specify a minimum level for logging streams.
Changes
- Removed reliance on
config.debug
to be set forconfig.debugStream
to work. - Made
LOG_LEVEL
env variable override no matter what.
The first new feature is adding config.level
, which will specify a minimum level a stream should be at, but if the stream was configured with a lower level, that will be respected.
In terms of changes, now the environment variable LOG_LEVEL
will always override the stream, regardless of anything else. (This allows you to raise the logging level even if you have config.debug
or config.level
set.) At the same time, we've removed the requirement for config.debug
to be set in order to set config.debugStream
true.
Breaking Changes
config.debug
no longer forces streams to be debug
If you were relying on config.debug
to set your streams to debug, we will now translate that into config.level = 'debug'
, meaning we won't force streams to be debug, we'll force them to be at least debug.
It is strongly encouraged that you stop using config.debug
.