summaryrefslogtreecommitdiff
path: root/lib/oxidized/log.rb
blob: db39462b9436950a491844c03cd53016173afc94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Oxidized
  require 'logger'
  class Logger < Logger
    def initialize target=STDOUT
      super target
      self.level = Logger::DEBUG
    end
    def file= target
      @logdev = LogDevice.new target
    end
  end
  Log = Logger.new
end