@livepreso/log
v1.3.11
Published
A basic logging framework
Downloads
10
Readme
Log
A basic logging framework based on bows and logLevel
Install
npm install sp-log
Usage
import {Log, LogLevel} from "@livepreso/log";
const log = Log("mylog");
log.debug("not shown in console due to log level");
log.info("info message");
log.setLevel(LogLevel.INFO);
// Turn off all logging
Log.setAllLevels(LogLevel.SILENT);
Documentation
http://developers.salespreso.com/modules/sp-log/
Development
# Install dependencies
yarn
# Run web server
yarn serve
# Run tests
yarn test
# Generate docs
yarn docs