Skip to content

Commit

Permalink
Now makes use of config change event to reconfigure
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-nextbit committed Apr 26, 2017
1 parent d90b730 commit d34f3fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class Logger {
Object.getPrototypeOf(this)._levelColors = {};
this.dir = config.paths.logs || process.env.NODE_LOG_DIR;
this.configure(config.logging);
config.on('change', () => this.configure(config.logging));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cheevr-logging",
"version": "1.0.5",
"version": "1.1.0",
"description": "A simple logging wrapper around winstin",
"private": true,
"main": "index.js",
Expand Down

0 comments on commit d34f3fd

Please sign in to comment.