evantahler/actionHero — pull request #90 by evantahler (2013-01-28 22:21:09+00:00)
Title: Logger

- actionHero is now using the winston logger: https://github.com/flatiron/winston. This will allow for better, more customizable logging.
- The `api.configData.log` is replaced with `api.configData.logger`
- You can now specifiy all the logging options and transports in `api.configData.logger.transports`
- You will probably want to define your transports in functions(api) so that you can evaluate them later and get things like `api.id` to use in your file names
- The notion of 'coloring' output has been removed, and replaced with more standard log-levels
- actionHero's log levels: 0=debug, 1=info, 2=notice, 3=warning, 4=error, 5=crit, 6=alert, 7=emerg
- `api.log(message, severity, data)` is the new syntax
- you can access winston directly at `api.logger`