Skip to content

v1.0.2

Choose a tag to compare

@baileyherbert baileyherbert released this 30 Dec 11:37
· 22 commits to main since this release

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.