added a loglevel setting

pull/87/merge
Peter 'Pita' Martischka 2011-08-17 17:45:47 +01:00
parent 77ba4e3e6c
commit 3ec7dc224b
3 changed files with 12 additions and 1 deletions

View File

@ -60,6 +60,9 @@ var serverName = "Etherpad-Lite " + version + " (http://j.mp/ep-lite)";
//cache 6 hours
exports.maxAge = 1000*60*60*6;
//set loglevel
log4js.setGlobalLogLevel(settings.loglevel);
async.waterfall([
//initalize the database
function (callback)

View File

@ -52,6 +52,11 @@ exports.minify = true;
*/
exports.abiword = null;
/**
* The log level of log4js
*/
exports.loglevel = "INFO";
//read the settings sync
var settingsStr = fs.readFileSync("../settings.json").toString();

View File

@ -34,5 +34,8 @@
/* This is the path to the Abiword executable. Setting it to null, disables abiword.
Abiword is needed to enable the import/export of pads*/
"abiword" : null
"abiword" : null,
/* The log level we are using, can be: DEBUG, INFO, WARN, ERROR */
"loglevel": "INFO"
}