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 CHANGED
@@ -1,6 +1,6 @@
1
- === 1.0.0 / 2008-12-19
1
+ === 0.1.1 / 2008-12-19
2
2
 
3
- * 1 major enhancement
3
+ * fixed printout of backtrace
4
4
 
5
- * Birthday!
5
+ * added log methods for ruby_logger_adapter
6
6
 
@@ -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
@@ -4,7 +4,7 @@ module Slf4r
4
4
  protected
5
5
 
6
6
  def format(exception)
7
- ": #{exception.message}:\n\t#{exception.backtrace.join('\n\t')}" if exception
7
+ ": #{exception.message}:\n\t#{exception.backtrace.join("\n\t")}" if exception
8
8
  end
9
9
 
10
10
  def _debug(msg)
data/lib/slf4r/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Slf4r
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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-08 00:00:00 +05:30
12
+ date: 2009-02-12 00:00:00 +05:30
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency