Better Logging
  • Introduction
  • Setup
    • Install
    • Log Levels
  • Configuration
    • format
    • formatStamp
    • saveToFile
    • logLevels
    • color
    • messageConstructionStrategy
  • extra
    • Decorate Arbitrary Object
    • Custom Instance
    • Express Middleware
    • Typescript Support
  • Upgrade Guides
    • 4.x to 5.x
    • 3.x to 4.x
Powered by GitBook
On this page

Was this helpful?

  1. Setup

Log Levels

There are 6 different defined log levels. If log method X has a log level of N and the current log level is >=N, then X will be logged.

Levels

  • debug: 4

  • log: 3

  • info: 2

  • warn: 1

  • error: 0

  • line: 1

  • turn off all logging: -1

  • default: 3

PreviousInstallNextformat

Last updated 3 years ago

Was this helpful?