Skip to content

v0.2.0

Compare
Choose a tag to compare
@christoph-fricke christoph-fricke released this 05 Jul 20:18

Features

  • ConsoleHandler now accepts a custom format function which is applied to every record logged to the console. (#2)
    • Added optional options argument in the constructor of ConsoleHandler.
      • Options contain a key for a custom format function.
  • Renamed ILogRecord.msg to ILogRecord.message.
  • Changed ConsoleHandler default format to: LEVEL: [context] - message
    • This should be more useful in a browser enviromnent where timestamps can also be displayed in the dev console.
  • Added ILogRecord.levelName which is a readable name of ILogRecord.level.

Internal

  • More documentation in the README
  • Added eslint for code linting
  • Updated CI workflow to perform a lint check