diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-01-21 19:23:48 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-01-21 19:23:48 +0100 |
commit | ef40dfbef99938969de07fe82c8bffbb67303faf (patch) | |
tree | cfb040e95cccb2e8c0755ea9e9261188f70c03d8 /src | |
parent | ba04c40f3483bb5d3bca5c406193edd489a798dd (diff) | |
download | osm-xapi-ef40dfbef99938969de07fe82c8bffbb67303faf.tar.gz osm-xapi-ef40dfbef99938969de07fe82c8bffbb67303faf.tar.xz osm-xapi-ef40dfbef99938969de07fe82c8bffbb67303faf.zip |
adding log level (cont.)
Diffstat (limited to 'src')
-rw-r--r-- | src/nodejs/config.json | 1 | ||||
-rw-r--r-- | src/nodejs/xmlGenerator.js | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/nodejs/config.json b/src/nodejs/config.json index 9c18203..be796a7 100644 --- a/src/nodejs/config.json +++ b/src/nodejs/config.json @@ -1,3 +1,4 @@ exports.connectionString = "pg://user:password@host/database"; exports.host = 'localhost'; exports.port = 8080; +exports.logLevel = 'ERROR'; diff --git a/src/nodejs/xmlGenerator.js b/src/nodejs/xmlGenerator.js index e982e18..97cd2ae 100644 --- a/src/nodejs/xmlGenerator.js +++ b/src/nodejs/xmlGenerator.js @@ -1,10 +1,12 @@ +var config = require('./config.json'); + var builder = require('xmlbuilder'); //set up logger var log4js = require('log4js')(); //note the need to call the function //log4js.addAppender(log4js.fileAppender('osm-xapi.log'), 'cheese'); var log = log4js.getLogger('xmlGenerator'); -log.setLevel('ALL'); +log.setLevel(config.logLevel); exports.createNode = function (row) { |