slf4r 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -3
- data/lib/ruby_logger_adapter.rb +17 -1
- data/lib/slf4r/abstract_logger_facade.rb +1 -1
- data/lib/slf4r/version.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/ruby_logger_adapter.rb
CHANGED
@@ -3,7 +3,23 @@ class Logger
|
|
3
3
|
def initialize(*args)
|
4
4
|
@logger = ::Slf4r::LoggerFacade.new(:root)
|
5
5
|
end
|
6
|
-
|
6
|
+
|
7
|
+
def debug(msg, &block)
|
8
|
+
@logger.debug(msg, &block)
|
9
|
+
end
|
10
|
+
|
11
|
+
def info(msg, &block)
|
12
|
+
@logger.info(msg, &block)
|
13
|
+
end
|
14
|
+
|
15
|
+
def warn(msg, &block)
|
16
|
+
@logger.warn(msg, &block)
|
17
|
+
end
|
18
|
+
|
19
|
+
def error(msg, &block)
|
20
|
+
@logger.error(msg, &block)
|
21
|
+
end
|
22
|
+
|
7
23
|
def method_missing(method, *args, &block)
|
8
24
|
@logger.send(method, *args, &block) if @logger.respond_to?(method)
|
9
25
|
end
|
data/lib/slf4r/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slf4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mkristian
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-12 00:00:00 +05:30
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|