Sha256: ed3b3330c5dc8534a4e7ab29db0b1bb44cc55d44282a63998bdb256ec69ae2d2
Contents?: true
Size: 413 Bytes
Versions: 5
Compression:
Stored size: 413 Bytes
Contents
module Oxidized begin require 'syslog/logger' Log = Syslog::Logger.new 'oxidized' Log.define_singleton_method(:file=){|arg|} rescue LoadError # 1.9.3 has no love for syslog require 'logger' class Logger < Logger def initialize target=STDOUT super target end def file= target @logdev = LogDevice.new target end end Log = Logger.new end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.2.3 | lib/oxidized/log.rb |
oxidized-0.2.2 | lib/oxidized/log.rb |
oxidized-0.2.1 | lib/oxidized/log.rb |
oxidized-0.2.0 | lib/oxidized/log.rb |
oxidized-0.1.1 | lib/oxidized/log.rb |