lib/logspot.rb in logspot-0.6.3 vs lib/logspot.rb in logspot-0.6.4
- old
+ new
@@ -11,11 +11,10 @@
end
output.puts(message: "#{base}#{data[:message]}")
}
@raw_output = @file = Output::File.new(file_or_file_name)
@top_output = @output = Output::Wrap.new(wrapper, @file)
- @level = nil
end
def tagged(tag, &block)
wrap_output(block) do |output, data|
base = tag
@@ -101,10 +100,10 @@
@file.finalize
end
private
- attr_reader :raw_output, :top_output, :output, :level
+ attr_reader :raw_output, :top_output, :output
def write(l, *args, &block)
output.puts(level: l, message: args[0], args: args, arg_block: block)
end