class Rufo::Logger
def debug(*args)
def debug(*args) $stdout.puts(*args) if should_output?(:debug) end
def error(*args)
def error(*args) $stderr.puts(*args) if should_output?(:error) end
def initialize(level)
def initialize(level) @level = LEVELS.fetch(level) end
def log(*args)
def log(*args) $stdout.puts(*args) if should_output?(:log) end
def should_output?(level_to_check)
def should_output?(level_to_check) LEVELS.fetch(level_to_check) <= level end
def warn(*args)
def warn(*args) $stderr.puts(*args) if should_output?(:warn) end