Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vladmandic/pilogger

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vladmandic/pilogger - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc