lib/hedgelog.rb in hedgelog-0.1.4 vs lib/hedgelog.rb in hedgelog-0.1.5

- old
+ new

@@ -19,15 +19,15 @@ TIMESTAMP_FORMAT = '%Y-%m-%dT%H:%M:%S.%6N%z'.freeze BACKTRACE_RE = /([^:]+):([0-9]+)(?::in `(.*)')?/ def initialize(logdev = STDOUT, shift_age = nil, shift_size = nil) - @channel_context = Hedgelog::Context.new(@scrubber) @level = LEVELS[:debug] @channel = nil @logdev = nil @app = nil @scrubber = Hedgelog::Scrubber.new + @channel_context = Hedgelog::Context.new(@scrubber) if logdev.is_a?(self.class) @channel = logdev else @logdev = Logger::LogDevice.new(logdev, shift_age: shift_age, shift_size: shift_size)