leandrosilva/slogger — pull request #6 by byroot (2012-03-01 14:04:24+00:00)
Title: Implement a #level method for standard ruby logger compatibility

Hi,

While upgrading Mongoid in version 2.4.5 I stepped upon an incompatibility between ruby's standard logger interface and Slogger. Mongoid expect the logger to implement a #level method:

https://github.com/mongoid/mongoid/blob/master/lib/mongoid/logger.rb#L12

This commit implement this method, and try to translate Syslog levels into standard ruby levels.

Regards.