discord-baymax-bot/node_modules/log4js/examples/reload.js

15 lines
396 B
JavaScript
Raw Permalink Normal View History

2017-03-24 04:52:08 +00:00
"use strict";
var path = require('path')
, log4js = require('../lib/log4js');
log4js.configure(
// config reloading only works with file-based config (obvs)
path.join(__dirname, '../test/tape/test-config.json'),
{ reloadSecs: 10 }
);
log4js.getLogger('testing').info("Just testing");
log4js.shutdown(function() {
//callback gets you notified when log4js has finished shutting down.
});