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 CHANGED
@@ -1,3 +1,8 @@
1
+ 0.12.1 (05/31/2012)
2
+ -------------------
3
+
4
+ fix init of Rails.logger <c0626c1>
5
+
1
6
  0.12.0 (05/31/2012)
2
7
  -------------------
3
8
 
@@ -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['rails']
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
- Log4r::Logger['rails'].level = level
25
+ app.config.logger.level = level
26
26
  end
27
27
  end
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module Lumber
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: