From: Rob Sanheim Date: 2006-06-08T06:14:25+09:00 Subject: sending false to logger outputs nil? Am I missing something? Why would sending false to the logger just output nil, instead of "false" to correspond to what sending true does? According to the docs: "message can be any object, but it has to be converted to a String in order to log it. Generally, inspect is used if the given object is not a String. " This just drove me crazy for a good half hour until I figured out what was going on, as I was logging a complex statement that evaluated to a boolean... irb(main):001:0> require 'logger' => true irb(main):002:0> logger = Logger.new(STDOUT) => #, @shift_size=nil, @shift_age=nil, @filename=nil, @mutex=#>, @formatter=nil, @default_formatter=#> irb(main):003:0> logger.debug(true) D, [2006-06-07T16:10:23.569265 #5516] DEBUG -- : true => true irb(main):004:0> logger.debug(false) D, [2006-06-07T16:10:26.721498 #5516] DEBUG -- : nil => true irb(main):005:0> logger.info(false) I, [2006-06-07T16:10:59.451009 #5516] INFO -- : nil => true - Rob -- http://www.robsanheim.com http://www.seekingalpha.com http://www.ajaxian.com