Sha256: f77b8f4571bf4a6d1cd82e1fec9583bccf17fb2705bdf68b7241aa539bd0d6c0

Contents?: true

Size: 590 Bytes

Versions: 8

Compression:

Stored size: 590 Bytes

Contents

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

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

Logging.init :debug, :info, :warn, :error

appender = Logging::Appenders::File.new("test", :filename => basedir + 'tmp' + 'logging.txt' )
#appender.layout = Logging::Layouts::Pattern.new(:pattern => "%d [%-l] (%c) %m\n")
logger = Logging::Logger.new(:root)
logger.add_appenders(appender)
logger.level = :debug

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

Version data entries

8 entries across 8 versions & 1 rubygems

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