Releases: baileyherbert/logging
Releases · baileyherbert/logging
Release list
v3.0.0
v2.1.0
- Added basic buffering with a
bufferboolean and aflush()method on loggers
v2.0.1
- Fixed the
createChild()method passing its own parent to the new instance. The changes inv1.2.0allow passing itself as the parent for more reliable level inheritance.
v2.0.0
What's Changed
- Bump minimist from 1.2.5 to 1.2.6 by @dependabot in #2
- Export DeepNonNullable type for use in exported API by @matthew-brewer in #4
- Export PrefixGenerator type for use in exported API by @matthew-brewer in #6
- Default transports to Trace minimum logging level by @matthew-brewer in #8
New Contributors
- @matthew-brewer made their first contribution in #4
Full Changelog: v1.2.0...v2.0.0
v1.2.0
- Added
attachanddetachmethods to loggers. Attached loggers behave like child loggers and allow you to forward output to multiple logger chains.
v1.1.0
- Added a
close()method to gracefully disconnect transports- This should especially be used on the file transport when shutting down the app with
process.exit()or via exit signal
- This should especially be used on the file transport when shutting down the app with
- Added a
transportsproperty on loggers to get all attached transports
v1.0.2
This release revamped the internal hierarchy for loggers and made the following fixes/improvements:
- Output now propagates through parent loggers, checking their log levels, until it reaches the root logger
- Output now triggers the
outputevent on all parent loggers (unless it violates the log level) - Added a
levelToRootproperty on loggers that returns the minimum log level for output to reach the root logger
Loggers now behave correctly in a hierarchy when a middle logger has a high log level. Before, a deeply nested child logger would send all output to the parent, regardless of the middle logger's minimum level.
v1.0.1
- Made the
PrefixGeneratorOptionsinterface public