log4jruby 2.0.0.rc2-java → 2.0.0.rc3-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 697befc3d72d9240809724c8dcfc6024c0b0bf07
4
- data.tar.gz: 3ed0bdba649f88a4d1c85ba3ce79a4c86349cb78
3
+ metadata.gz: e08e6f11c96bbf03b26bad478e93323c326f6c88
4
+ data.tar.gz: e4dd8ee67b8ed0ab344a208e23859eee67f9de69
5
5
  SHA512:
6
- metadata.gz: 48084bb0a2d70263062a48bc611f84f8e906361411227eddd2172c015631bca6178c79f88771b0fc5d4441b0d55e713a4db1803412de1e393bd135b0f270474f
7
- data.tar.gz: 79a4041e5123dc4a1dc189c438c150e12ea7f435104f6749c1e041a1f7c11f995bc18d905c065c1340507065e7d68d4d65830ce3842dfceeca7b3974138600d8
6
+ metadata.gz: 2bd9e0c102ab901c70a072b5e9b8d77b094a7ae1d242b723e9e7f189c9d87e77c1ac5b17e57e0ffe5554cc4ebf159c27be2723d99b6bafe9d446155d8a3b2cbf
7
+ data.tar.gz: aa40158379e0b483da052794623a22669213542026d439b4f88cedd35bc4a9176ccc9681bda1e76950577de3c3903c56c07d3bc2160686347de58e538913e781
@@ -1,5 +1,9 @@
1
1
  # log4jruby Changelog
2
2
 
3
+ ## v2.0.0.rc3
4
+
5
+ * Add Logger#silence for ActiveSupport::Logger compatibility - https://github.com/lenny/log4jruby/pull/11
6
+
3
7
  ## v2.0.0.rc2
4
8
 
5
9
  * Internal implementation changes - https://github.com/lenny/log4jruby/pull/8
@@ -172,6 +172,17 @@ module Log4jruby
172
172
  fetch_logger(log4j_logger.parent)
173
173
  end
174
174
 
175
+ # Compatibility with ActiveSupport::Logger
176
+ # needed to use a Log4jruby::Logger as an ActiveRecord::Base.logger
177
+ def silence(temporary_level = ::Logger::ERROR)
178
+ begin
179
+ old_logger_level, self.level = level, temporary_level
180
+ yield self
181
+ ensure
182
+ self.level = old_logger_level
183
+ end
184
+ end
185
+
175
186
  private
176
187
 
177
188
  def initialize(logger) # :nodoc:
@@ -1,3 +1,3 @@
1
1
  module Log4jruby
2
- VERSION = '2.0.0.rc2'
2
+ VERSION = '2.0.0.rc3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log4jruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc2
4
+ version: 2.0.0.rc3
5
5
  platform: java
6
6
  authors:
7
7
  - Lenny Marks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-06 00:00:00.000000000 Z
11
+ date: 2015-05-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby Logger using Log4j, geared toward those who use JRuby to write Ruby code using/extending Java code. Ruby and Java are configured together using traditional Log4j methods.
14
14
  email: