v3.1.0 configureable logger
- 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: