Move examples into their own directory.

This commit is contained in:
Friedel Ziegelmayer
2013-01-19 22:12:10 +01:00
parent ec2f8fec3b
commit 7f57d14e70
6 changed files with 0 additions and 0 deletions

27
examples/log-rolling.js Normal file
View File

@@ -0,0 +1,27 @@
var log4js = require('./lib/log4js')
, log
, i = 0;
log4js.configure({
"appenders": [
{
type: "console"
, category: "console"
},
{
"type": "file",
"filename": "tmp-test.log",
"maxLogSize": 1024,
"backups": 3,
"category": "test"
}
]
});
log = log4js.getLogger("test");
function doTheLogging(x) {
log.info("Logging something %d", x);
}
for ( ; i < 5000; i++) {
doTheLogging(i);
}