UNPKG

node-logging-js

Version:

Easy lib to trace function calls and write log messages into the `console` object.

12 lines (10 loc) 339 B
var logging = require('./../'); var assert = require('assert'); describe('logging', function() { it('should have wroking setLevel', function(done) { assert.equal(logging.level, logging.LEVEL_ALL); logging.setLevel(logging.LEVEL_OFF); assert.equal(logging.level, logging.LEVEL_OFF); done(); }); });