From: ChrisKaelin Date: 2007-04-17T23:25:05+09:00 Subject: How to check if the logfile of a Logger instance is closed? If I do: l = Logger.new("testlog") l.close now if I want to close it again, I get: IOError: closed stream So far, I have checked for this error (by rescue clause), to see, if the logfile is already closed. Is there a more elegant way to check if the instance (i.e. the logfile stream) is already closed?