asenchi / scrolls

Simple logging
MIT License
158 stars 26 forks source link

Logger convienence methods #52

Closed asenchi closed 10 years ago

asenchi commented 10 years ago

This adds compatibility methods for Logger-like functionality.

Scrolls.info(:t => "t")

Now will produce: t=t level=info.

This also increases our default "LOG_LEVEL" to 6. Meaning, Scrolls will not print #debug messages unless you change this env variable. Previously this was only true for ERROR and more severe.

asenchi commented 10 years ago

Latest commit updates the levels to match those in Syslog::Logger. http://ruby-doc.org/stdlib-2.0.0/libdoc/syslog/rdoc/Syslog/Logger.html

Future proof behavior. :)

asenchi commented 10 years ago

Ok, satisfied, :ship: