Permalink
Browse files

Available log methods are bound by the output _levels. Levels was mis…

…sing the basic 'log' level as well as some expected console api methods like warn. Modified to use warn and info for warn and info, and add log to the levels to resolve 'log has no method log' issue #12
  • Loading branch information...
1 parent c7a239e commit bc4212e067e696203f180944e1e1b640db7aa920 @kwarismian kwarismian committed Jan 31, 2014
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/log.js
View
@@ -7,9 +7,11 @@ var util = require('util')
_levels = {
'debug': 'log'
-, 'info': 'log'
-, 'notice': 'log'
-, 'warning': 'error'
+, 'log' : 'log'
+, 'info': 'info'
+, 'notice': 'info'
+, 'warning': 'warn'
+, 'warn': 'warn'
, 'error': 'error'
, 'critical': 'error'
, 'alert': 'error'

0 comments on commit bc4212e

Please sign in to comment.