class GraphiteAPI::Logger

Attributes

logger[RW]

Public Class Methods

init(options) click to toggle source

:level => :debug :std => out|err|file-name

# File lib/graphite-api/logger.rb, line 23
def init(options)
  self.logger = ::Logger.new(options[:std] || STDOUT)
  self.logger.level= ::Logger.const_get "#{options[:level].to_s.upcase}"
end
method_missing(m,*args,&block) click to toggle source
# File lib/graphite-api/logger.rb, line 28
def method_missing(m,*args,&block)
  logger.send m, *args, &block if logger.respond_to? m
end