The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Updated the type definition dependencies.
- Updated the package metadata reflecting the repository move.
- This module now exports minified single file entry points, making this package much more lightweight.
- 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
.
- Support for Node.js version
10.x.x
has been dropped.
- Updated the documentation.
- Introduced documentation to the Typescript type definitons.
- 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
.
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.
log2stream.transform()
will correctly fail when the provided transformer function fails.log2stream.filter()
will correctly fail when the provided test function fails.
- The TypeScript type definitions for
LoggerFactory
have been updated.
- 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.
LoggerFactory#level
is now readonly; use the newly addedLoggerFactory#setLoggerLevel()
method instead.
- Updated
log2stream.transform()
to not output a raw log record if the transformer throws an error.
- Changed the reference to the TypeScript type definitions.
The initial public release.