Releases: lsphillips/log2stream
Releases · lsphillips/log2stream
v3.1.2
v3.1.1
Changed
- This module now exports minified single file entry points, making this package much more lightweight.
v3.1.0
Added
- This module has two different versions of this module, a CommonJS version for when it is being imported using
require
and an ESM version for when it is being imported usingimport
.
Changed
- Support for Node.js version
10.x.x
has been dropped.
v3.0.1
Changed
- Updated the documentation.
v3.0.0
Added
- Introduced documentation to the Typescript type definitons.
Changed
- Loggers and factories no longer have a minimum severity level associated with them. Loggers will always produce log records.
- Levels are now named using pascal case rather that uppercase, for example
Level.ERROR
is nowLevel.Error
.
Removed
Level.toLevel()
no longer accepts a second argument to return a default if a corresponding level can't be found.Level.Off
andLevel.All
no longer exist.
Fixed
log2stream.transform()
will correctly fail when the provided transformer function fails.log2stream.filter()
will correctly fail when the provided test function fails.
v2.0.1
Fixed
- The TypeScript type definitions for
LoggerFactory
have been updated.
v2.0.0
Added
- Introduced a new
LoggerFactory
method:This will set the level of future loggers and update the level of all existing loggers created by the factory. IfLoggerFactory#setLoggerLevel(level, force = false)
force
is set totrue
, all existing loggers will be updated regardless of whether a logger has been manually updated.
Changed
LoggerFactory#level
is now readonly; use the newly addedLoggerFactory#setLoggerLevel()
method instead.
Fixed
- Updated
log2stream.transform()
to not output a raw log record if the transformer throws an error.
v1.0.1
Fixed
- Changed the reference to the TypeScript type definitions.
v1.0.0
The initial public release.