New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lillog

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lillog

Simple UDP Based logging lib

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

lillog

Smallest possible logger available

Straight to the point:

var lillog = require('lillog');
//Std logging
lillog.log('teste');
//Error logging
lillog.error(new Error('I am a fake error'));
//Debug logging
lillog.debug('debug');
//Logs the trace where called to console
lillog.trace('teste trace');

lillog has a config object, that allows changing logging behavior without recoding:

lillog.config = {
    //time format for messages - see momentjs
    timeformat: 'YYYY-MM-DD HH:mm:ss',
    //enable debug msgs
    debugenabled: true,
    //enable log msgs
    logenabled: true,
    //enable error msgs
    errorenabled: true,
    //enable error stack print
    errorprinttrace: true,
    //enable trace
    traceenabled: true
};

IMPORTANT:

At the moment everything goes to console (It is intended that system will handle this properly - pm2 for example will handle logs better than this.) This is intended to be organize logging from app coding perspective only.

FAQs

Package last updated on 19 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts