UNPKG

log-queue

Version:

Logging to console with eventual log4js-tagline support.

14 lines (10 loc) 647 B
var llog = require("../app.js"), a = new llog({ parent: null }).init({appender: "console"}), b = new llog({ parent: null, exclude_logMsg: ["debug", "error"] }).init({appender: "console"}) a.logMsg({ msg: "hello world".debug, type: "debug" }) a.logMsg({ msg: "hello world".silly, type: "silly" }) a.logMsg({ msg: "hello world".error.italic.bold, type: "error" }) b.logMsg({ msg: "hello world another example".debug.italic.bold, type: "debug" }) b.logMsg({ msg: "hello world another example".silly.italic.bold, type: "silly" }) b.logMsg({ msg: "hello world another example".error.italic.bold, type: "error" })