Check environment variable LOG4JS_CONFIG for configuration file location.
This commit is contained in:
@@ -240,8 +240,9 @@ function initReloadConfiguration(filename, options) {
|
||||
|
||||
function configure(configurationFileOrObject, options) {
|
||||
var config = configurationFileOrObject;
|
||||
config = config || process.env.LOG4JS_CONFIG;
|
||||
options = options || {};
|
||||
|
||||
|
||||
if (config === undefined || config === null || typeof(config) === 'string') {
|
||||
if (options.reloadSecs) {
|
||||
initReloadConfiguration(config, options);
|
||||
|
||||
Reference in New Issue
Block a user