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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/log4jruby/logger.rb +11 -0
- data/lib/log4jruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e08e6f11c96bbf03b26bad478e93323c326f6c88
|
4
|
+
data.tar.gz: e4dd8ee67b8ed0ab344a208e23859eee67f9de69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bd9e0c102ab901c70a072b5e9b8d77b094a7ae1d242b723e9e7f189c9d87e77c1ac5b17e57e0ffe5554cc4ebf159c27be2723d99b6bafe9d446155d8a3b2cbf
|
7
|
+
data.tar.gz: aa40158379e0b483da052794623a22669213542026d439b4f88cedd35bc4a9176ccc9681bda1e76950577de3c3903c56c07d3bc2160686347de58e538913e781
|
data/CHANGELOG.md
CHANGED
data/lib/log4jruby/logger.rb
CHANGED
@@ -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:
|
data/lib/log4jruby/version.rb
CHANGED
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.
|
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-
|
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:
|