Sha256: cc2f83f60d6f6ee776d9d4cb730574e1eeb42999400b5eca0a4f525d719698b5

Contents?: true

Size: 522 Bytes

Versions: 8

Compression:

Stored size: 522 Bytes

Contents

require 'pathname'
require 'fileutils'
require Pathname(__FILE__).dirname.expand_path + 'logger_helper'

Object.class_eval do
  remove_const :Slf4r
end

basedir = Pathname(__FILE__).dirname.parent.expand_path
load basedir + 'lib' + 'slf4r' + 'abstract_logger_facade.rb'
load basedir + 'lib' + 'slf4r' + 'ruby_logger.rb'
require 'slf4r/ruby_logger'

facade = Slf4r::LoggerFacade4RubyLogger
facade.file = basedir + 'tmp' + 'ruby_log.txt'
facade.level = ::Logger::DEBUG

behave_as_logger(Slf4r::LoggerFacade.new('ruby_log'))

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
slf4r-0.4.2 spec/ruby_logger_spec.rb
slf4r-0.4.1 spec/ruby_logger_spec.rb
slf4r-0.4.0 spec/ruby_logger_spec.rb
slf4r-0.3.3 spec/ruby_logger_spec.rb
slf4r-0.3.2 spec/ruby_logger_spec.rb
slf4r-0.3.1 spec/ruby_logger_spec.rb
slf4r-0.3.0 spec/ruby_logger_spec.rb
slf4r-0.2.0 spec/ruby_logger_spec.rb