forked from mirrors/Scribe.js
Example one folder - two consoles
This commit is contained in:
parent
881ba50938
commit
53cbfaac5e
1 changed files with 18 additions and 0 deletions
18
examples/multiplesConsolesOneFolder.js
Normal file
18
examples/multiplesConsolesOneFolder.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
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");
|
Loading…
Add table
Reference in a new issue