Better Logging
Github
Search
⌃
K
Links
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
Comment on page
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
Previous
Introduction
Next - Setup
Log Levels
Last modified
1yr ago