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

Allow one log folder for multiple consoles #37

Closed guillaumewuip closed 9 years ago

guillaumewuip commented 9 years ago

As see in #36

guillaumewuip commented 9 years ago

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

var consoleOne = scribe.console({
    logWriter : {
        rootPath : "testLogs"
    }
});
var consoleTwo = scribe.console({
    logWriter : {
        rootPath : "testLogs"
    }
});

//both will log in /testLogs
consoleOne.log("Hello one");
consoleOne.log("Hello two");