balderdashy/sails — pull request #1162 by ctwise (2013-12-02 15:47:00+00:00)
Title: Support seperate logging levels for console and file.

The current logger.js doesn't support separate logging levels for the console and for a log file. This patch allows the config to specify a single log level or separate log levels for the console and for the log file. In order to accomplish that, we have to allow Winston to handle choosing whether to log, which requires providing the log levels to Winston during configuration. I added the "common" log levels that other packages use to easily support logging from them and added a "fail" level as well.

It's not in this patch but I HIGHLY suggest flipping the priority level of Info and Debug. It makes no sense for Debug to be higher in priority then Debug.