class Logger::LogDevice
def set_dev(log)
def set_dev(log) if log.respond_to?(:write) and log.respond_to?(:close) @dev = log if log.respond_to?(:path) @filename = log.path end else @dev = open_logfile(log) @dev.sync = true @dev.binmode if @binmode @filename = log end end