Created
September 5, 2011 18:25
-
-
Save mahemoff/1195611 to your computer and use it in GitHub Desktop.
logging with winston
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| winston = require 'winston' | |
| global[level] = winston[level] for level of winston.config.syslog.levels | |
| debug 'foo' | |
| info 'foo' | |
| notice 'foo' | |
| warning 'foo' | |
| error 'foo' | |
| crit 'foo' | |
| alert 'foo' | |
| emerg 'foo' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| winston = require('winston'); | |
| for (level in winston.config.syslog.levels) { global[level] = winston[level]; } | |
| debug('foo'); | |
| info('foo'); | |
| notice('foo'); | |
| warning('foo'); | |
| error('foo'); | |
| crit('foo'); | |
| alert('foo'); | |
| emerg('foo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment