Skip to content

Commit

Permalink
add FATAL styling
Browse files Browse the repository at this point in the history
  • Loading branch information
philmander committed Jun 12, 2015
1 parent ec2d34f commit 76275ac
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -11,7 +11,7 @@ var log = bunyan.createLogger({
streams: [
{
level: 'info',
stream: bunyan.ConsoleFormattedStream
stream: new bunyan.ConsoleFormattedStream()
type: 'raw'
}
]
Expand Down
4 changes: 3 additions & 1 deletion dist/browser-bunyan.js
Expand Up @@ -159,8 +159,10 @@ ConsoleFormattedStream.prototype.write = function (rec) {
levelCss = 'color: DarkTurquoise';
} else if (rec.level < ERROR) {
levelCss = 'color: Purple';
} else {
} else if (rec.level < FATAL) {
levelCss = 'color: Crimson';
} else {
levelCss = 'color: Black';
}

console.log('[%s:%s:%s:%s] %c%s%c: %s: %c%s',
Expand Down

0 comments on commit 76275ac

Please sign in to comment.