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. extra

Typescript Support

Better-logging is written in typescript and provides 100% ts integration.

// using import
import betterLogging from 'better-logging';
betterLogging(console);
console.log('Hello!') // [11:46:35.294] [log] Hello!
// using require
require('better-logging').default(console);
console.log('Hello!') // [11:46:35.294] [log] Hello!
PreviousExpress MiddlewareNext4.x to 5.x

Last updated 2 years ago

Was this helpful?