hatchet 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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