Skip to content

Releases: baileyherbert/logging

v3.0.0

Choose a tag to compare

@baileyherbert baileyherbert released this 21 Jan 20:26
  • [BREAKING] Bumped required engine to node>=18.0.0
  • Updated to TypeScript 5.3
  • Updated all other dependencies

v2.1.0

Choose a tag to compare

@baileyherbert baileyherbert released this 02 Jun 15:04
  • Added basic buffering with a buffer boolean and a flush() method on loggers

v2.0.1

Choose a tag to compare

@baileyherbert baileyherbert released this 19 May 22:45
  • Fixed the createChild() method passing its own parent to the new instance. The changes in v1.2.0 allow passing itself as the parent for more reliable level inheritance.

v2.0.0

Choose a tag to compare

@baileyherbert baileyherbert released this 13 Apr 19:26
fdb84b9

What's Changed

New Contributors

Full Changelog: v1.2.0...v2.0.0

v1.2.0

Choose a tag to compare

@baileyherbert baileyherbert released this 02 Mar 20:37
  • Added attach and detach methods to loggers. Attached loggers behave like child loggers and allow you to forward output to multiple logger chains.

v1.1.0

Choose a tag to compare

@baileyherbert baileyherbert released this 23 Jan 22:23
  • 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
  • Added a transports property on loggers to get all attached transports

v1.0.2

Choose a tag to compare

@baileyherbert baileyherbert released this 30 Dec 11:37

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 output event on all parent loggers (unless it violates the log level)
  • Added a levelToRoot property 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

Choose a tag to compare

@baileyherbert baileyherbert released this 20 Dec 02:19
  • Made the PrefixGeneratorOptions interface public

v1.0.0

Choose a tag to compare

@baileyherbert baileyherbert released this 09 Dec 01:41
  • Initial release