mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-11 17:51:34 -04:00
Prepared logging code to be able to read log4js appenders from settings.json
This commit is contained in:
parent
970f3b181d
commit
a479fa144e
11 changed files with 38 additions and 12 deletions
|
@ -22,7 +22,6 @@
|
|||
*/
|
||||
|
||||
var log4js = require('log4js');
|
||||
log4js.configure('etherpad_logging.json');
|
||||
var settings = require('./utils/Settings');
|
||||
var db = require('./db/DB');
|
||||
var async = require('async');
|
||||
|
@ -30,6 +29,9 @@ var plugins = require("ep_etherpad-lite/static/js/pluginfw/plugins");
|
|||
var hooks = require("ep_etherpad-lite/static/js/pluginfw/hooks");
|
||||
var npm = require("npm/lib/npm.js");
|
||||
|
||||
//Configure the logging appenders
|
||||
log4js.configure(settings.logconfig);
|
||||
|
||||
hooks.plugins = plugins;
|
||||
|
||||
//set loglevel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue