summaryrefslogtreecommitdiff
path: root/lib/oxidized/log.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2013-04-17 17:48:50 +0300
committerSaku Ytti <saku@ytti.fi>2013-04-17 17:48:50 +0300
commit9d217025fac3e335c308f02e7377e14ccfdc0e66 (patch)
treeb90d4d04947fe26a9e592e12d8c4352142380c03 /lib/oxidized/log.rb
Initial commit
Silly for shit-and-giggles attempt at rancid
Diffstat (limited to 'lib/oxidized/log.rb')
-rw-r--r--lib/oxidized/log.rb13
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