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

Just write logs to file? #55

Closed harshpatel19 closed 9 years ago

harshpatel19 commented 9 years ago

Is it possible to write logs just to files and not on stdout?

guillaumewuip commented 9 years ago

Yep, the options is documented here. You could try :

var scribe = require('scribe')({
   createDefaultConsole: false
});

var console = scribe.console({
    console: {
        logInConsole: false
    },
    logWriter: {
        rootPath: 'logs'
    }
});

console.log('this will be saved on file, not printed on terminal');
harshpatel19 commented 9 years ago

thanks