Sha256: ca1e8113dc87ef37479531f0455c5ee4cdbb3c102b3df79468ef04c98fe91487
Contents?: true
Size: 517 Bytes
Versions: 3
Compression:
Stored size: 517 Bytes
Contents
module Main class Program module InstanceMethods def logger= log unless(defined?(@logger) and @logger == log) case log when ::Logger, Logger, Syslog::Logger @logger = log else if log.is_a?(Array) @logger = Logger.new(*log) else @logger = Logger.new(log) @logger.level = logger_level end end end @logger end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
log2mail-0.0.1.pre4 | lib/ext/main.rb |
log2mail-0.0.1.pre3 | lib/ext/main.rb |
log2mail-0.0.1.pre2 | lib/ext/main.rb |