Closed ourarash closed 5 years ago
// configure
var log = require("ololog").configure({
locate: false,
tag:false
});
log("doesn't print locate or tag :)");
// reconfigure
log = log.configure({locate:true, tag: true});
log.info("does print locate or tag :)");
log.configure({locate:true, tag: true}).info("prints locate or tag but it's ugly!");
Awesome!
Suppose I configure the log once. How can I reconfigure it afterwards such that the effect stays permanent. See example below: