mathew-kurian / Scribe.js

:scroll: Node.js logging made simple! Online access to logs and more...
https://mathew-kurian.github.io/Scribe.js/
MIT License
284 stars 45 forks source link

Cannot set logInConsole for addLogger method on console2 #80

Open pflima92 opened 8 years ago

pflima92 commented 8 years ago

Hi,

I'm trying add new logger and set option logInConsole false.

e.g:

console.addLogger('monitoring', 'inverse', { logInConsole: 'false', defaultTags : ['monitoring'] });

On call: console.monitoring the log is printed on console...

In the js: console2.js

opt.logInConsole = opt.logInConsole || this.opt.logInConsole;

With this code, custom option for one logger is ignored...

So, can i help to fix this?

mathew-kurian commented 8 years ago

Yes. Please make a PR