nomiddlename/log4js-node — pull request #69 by mab-netdev (2012-05-02 15:21:03+00:00)
Title: setLevel vs isLevelEnabled asymmetry 

`setLevel("foo")` works, but `setLevel(log4js.levels.foo)` silently does not (sets the level to TRACE).
BUT both `isLevelEnabled("foo")` and `isLevelEnabled(log4js.levels.foo)` work.
https://gist.github.com/2577357

This is a fix for that:

Changed toLevel to accept a Log4js.Level (or in fact any object), and try to convert it to a Log4js.Level.