Skip to content

Commit

Permalink
fix: add log level to logger prefix (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjin authored Oct 1, 2018
1 parent 497c760 commit c19850d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export class Logger {

this.logger = consoleLogLevel({
stderr: true,
prefix: opts && opts.tag ? opts.tag : 'unknown',
prefix: `${opts && opts.tag ? opts.tag : 'unknown'} ${
levelName.toUpperCase()}`,
level: levelName as ConsoleLogLevel
});
}
Expand Down

0 comments on commit c19850d

Please sign in to comment.