hatchet 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hatchet/logger_appender.rb +4 -0
- data/lib/hatchet/version.rb +1 -1
- metadata +1 -1
@@ -45,6 +45,10 @@ module Hatchet
|
|
45
45
|
yield self if block_given?
|
46
46
|
|
47
47
|
@logger.level = ::Logger::DEBUG
|
48
|
+
return unless @logger.instance_of? Logger
|
49
|
+
|
50
|
+
# Wipe the format of the core Logger. The Rails.logger doesn't have this
|
51
|
+
# method for example.
|
48
52
|
@logger.formatter = proc do |severity, datetime, progname, msg|
|
49
53
|
"#{msg}\n"
|
50
54
|
end
|
data/lib/hatchet/version.rb
CHANGED