UNPKG

log-queue

Version:

Logging to console with eventual log4js-tagline support.

11 lines (8 loc) 449 B
var llog = require("../app.js"), a = new llog({ parent: null, exclude_logMsg: ["warn"]}).init({appender: "http", hostname: "127.0.0.1", port: 3000}) a.logMsg({ msg: "this is a debug message".debug, type: "debug" }) a.logMsg({ msg: "this is some warning message", type: "warn" }) a.logMsg({ msg: "this is some error message", type: "error" }) a.logMsg({ msg: "this is a success message", type: "success" }) a.server()