Sha256: 9032923867b7b82cfeea383b7253fd08eeb92333c8ac83c9f19b95038724da92
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
require 'slf4r/logger' begin # make sure we have java require 'java' 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 rescue LoadError puts "using ruby logger" require 'slf4r/ruby_logger' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slf4r-0.3.3 | lib/slf4r.rb |