Permalink
Browse files

case java but no slf4j fixed

  • Loading branch information...
1 parent 664b9b4 commit bc91f9a8fa5da90b142ce59a70e55efe744773f6 @mkristian committed Jul 29, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/slf4r.rb
View
@@ -5,12 +5,13 @@
begin
# make sure we have SLF4J in the classloader
import 'org.slf4j.LoggerFactory'
+
+ require 'slf4r/java_logger'
+ puts "using slf4j logger"
rescue NameError
puts "no SLF4J found in classloader - using ruby logger"
require 'slf4r/ruby_logger'
end
- require 'slf4r/java_logger'
- puts "using slf4j logger"
rescue LoadError
puts "using ruby logger"
require 'slf4r/ruby_logger'

0 comments on commit bc91f9a

Please sign in to comment.