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
  • Install package using npm
  • Import package and decorate console
  • Optionally set log level

Was this helpful?

  1. Setup

Install

Install package using npm

npm i better-logging

Import package and decorate console

require('better-logging')(console);

Optionally set log level

require('better-logging')(console);
console.logLevel = 4; // Enable all logging
PreviousIntroductionNextLog Levels

Last updated 3 years ago

Was this helpful?