mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-25 06:45:10 +00:00
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