1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
module Oxidized require 'logger' class Logger < Logger def initialize target=STDOUT super target end def file= target FileUtils.mkdir_p File.dirname(target) @logdev = LogDevice.new target end end Log = Logger.new end