def log_level=(level)
      writer.level = level if level.is_a?(Integer) && level.between?(0, 3)
      writer.level = LOG_LEVELS[level] ||
        raise(ArgumentError, "unknown log level")
      @level = level
    end
def log_level=(level)
      writer.level = level if level.is_a?(Integer) && level.between?(0, 3)
      writer.level = LOG_LEVELS[level] ||
        raise(ArgumentError, "unknown log level")
      @level = level
    end
Public: Create a new instance of a log writer

 writer - Logger compatible instance
 log_level - (optional, symbol) the log level

 Returns nothing
 Public: Set the log level on the writer

 level - (symbol) the log level

 Returns nothing