@vladmandic/pilogger
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "@vladmandic/pilogger", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Simple Logger for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "pilogger.js", |
@@ -5,6 +5,11 @@ # PiLogger | ||
## Why | ||
Because out of all of the existing modules, I couldn't find one that does what I needed and doesn't carry large number of unnecessary dependencies. There are far more complex loggers available, but sometimes all you need is simplicity with specific feature-set. | ||
This module is written in pure ES6 with minimal dependencies. | ||
## Features | ||
- Extremely lightweight | ||
- Color coding of different log levels | ||
- Color coding of different log levels for console output | ||
- Support for console and file logging | ||
@@ -38,3 +43,3 @@ - Prefix messages with timestamp | ||
Messages that are mirrored to console and 'logFile' | ||
Messages that are mirrored to console and `logFile` (if set), each one prefixed and color coded | ||
@@ -48,3 +53,3 @@ log.blank(...msg); | ||
Messages that are output to 'accessFile' (if set) only | ||
Messages that are output to `accessFile` (if set) only | ||
Useful for detailed application access log that you don't want printed to console | ||
@@ -54,3 +59,3 @@ | ||
Messages that are output to 'clientFile' (if set) only | ||
Messages that are output to `clientFile` (if set) only | ||
Useful for logging of any other messages that you don't want printed to console | ||
@@ -61,3 +66,3 @@ | ||
Access to history ring buffer. | ||
obj.time is message timestamp, obj.tag is message type (info, state, data, warn, error), obj.msg is parsed message string | ||
`obj.time` is message timestamp, `obj.tag` is message type (info, state, data, warn, error), `obj.msg` is parsed & concatened message string | ||
@@ -64,0 +69,0 @@ for (const line in log.ring) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8565
67