Plugin for loglevel which sends all messages to stderr on Node.js
Usage
Installation
Clone the sources and install the package (In the source directory) on command line using npm
:
npm install
Testing
Run the following NPM script to lint, test and check coverage of the code:
npm run check
AMD
;
Node.js require
var log = ;var loglevelStdStreams = ; ; log;
Example
$ node -e 'var log = require("loglevel-std-streams")(require("loglevel"));log.warn("This is a warning");console.log("TEST");' 2>log.txtTEST$ cat log.txtThis is a warning$
License and copyright
Copyright (c) 2015-2016 University Of Helsinki (The National Library Of Finland)
This project's source code is licensed under the terms of MIT License.