Skip to content

v3.1.0 configureable logger

Compare
Choose a tag to compare
@tot-ra tot-ra released this 05 May 12:57
· 90 commits to master since this release

See PR

  • Added dependency to winston
  • Added an instance of logger in logger.ts and removed the logging functions
  • Replace every use of the previous logger functions with calls to the logger exposed from logger.ts

The logger is configured with the following environment variabbles:

  • LOG_LEVEL (default is info)
  • LOG_TYPE (default is pretty; json also supported)

Pretty log formats looks like this:

Screen Shot 2022-05-04 at 12 20 03 PM