lumber 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/lib/lumber/railtie.rb +2 -2
- data/lib/lumber/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/lib/lumber/railtie.rb
CHANGED
@@ -15,14 +15,14 @@ module Lumber
|
|
15
15
|
Lumber.setup_logger_hierarchy("ActionController::Base", "rails::controllers")
|
16
16
|
Lumber.setup_logger_hierarchy("ActionMailer::Base", "rails::mailers")
|
17
17
|
end
|
18
|
-
config.logger = Log4r::Logger[
|
18
|
+
app.config.logger = Log4r::Logger[Lumber::BASE_LOGGER]
|
19
19
|
|
20
20
|
config_level = app.config.log_level
|
21
21
|
if config_level
|
22
22
|
level_str = config_level.to_s.upcase
|
23
23
|
level = Log4r::LNAMES.index(level_str)
|
24
24
|
raise "Invalid log level: #{config_level}" unless level
|
25
|
-
|
25
|
+
app.config.logger.level = level
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/lib/lumber/version.rb
CHANGED