Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ree-1.8.7-2011.03 :002 > logger =
=> #<Logger:0x10691d8e8 @formatter=nil, @level=0, @default_formatter=#<Logger::Formatter:0x10691d898 @datetime_format=nil>, @progname=nil, @logdev=#<Logger::LogDevice:0x10691d848 @shift_size=nil, @shift_age=nil, @filename=nil, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x10691d7f8 @mon_waiting_queue=[], @mon_entering_queue=[], @mon_count=0, @mon_owner=nil>, @dev=#<IO:0x106a6ca28>>>
ree-1.8.7-2011.03 :003 > logger.debug("foo")
D, [2011-09-07T13:17:27.155346 #22488] DEBUG -- : foo
=> true
ree-1.8.7-2011.03 :004 > logger.level = nil
=> nil
ree-1.8.7-2011.03 :005 >
NoMethodError: undefined method `<=' for nil:NilClass
from /Users/bryan/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/logger.rb:221:in `info?'
from (irb):5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment