very simple javascript logger
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
jslog.js

README.md

jsLog

very simple javascript logger

Usage is simple:

log(message, level);

message: any arbitrary string/object
level: user defined level (defaults to INFO). has reserved words ERROR and LOG.

log();

this returns all the logs in an object array of the form {msg: 'string', lvl: 'INFO'}.

debuglvl();

allows one to set the debug level, or retrieve the current level

setlvls();
setlvls()['LOG_LVL'] = 3;

allows one to retrieve/modify and add custom logging levels

default();

allows one to get/set the default logging level