diff options
Diffstat (limited to 'lib/oxidized/log.rb')
-rw-r--r-- | lib/oxidized/log.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/oxidized/log.rb b/lib/oxidized/log.rb new file mode 100644 index 0000000..db39462 --- /dev/null +++ b/lib/oxidized/log.rb @@ -0,0 +1,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 |