public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11
ree-1.8.7-2011.03 :002 > logger = Logger.new(STDOUT)
=> #<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 > logger.info?
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.