class Logger

def close

Related: Logger#reopen.

logger.info('foo') # Prints "log writing failed. closed stream"
logger.close # => nil
logger = Logger.new('t.log')

Closes the logger; returns +nil+:
def close
  @logdev&.close
end