If I do:
l = Logger.new(“testlog”)
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?