Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #41 from Financial-Times/rb-colourize-winston-logs
Browse files Browse the repository at this point in the history
Colourize winston logs
  • Loading branch information
remybach authored May 18, 2017
2 parents 45e0a97 + 53bf90e commit 63a31fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/app-logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ class AppLogger extends Logger {
constructor (deps = {}) {
super(deps);
Object.assign(this.deps, { winston, Splunk }, deps);
this.logger = new (this.deps.winston.Logger)();
this.logger = new (this.deps.winston.Logger)({
transports: [
new (this.deps.winston.transports.Console)({ colorize: true })
]
});
}

doLog (...args) {
Expand Down

0 comments on commit 63a31fa

Please sign in to comment.