Sha256: 8d452b453121eb73c443eb7620d961117f617b7ac380d27c8866d51b064fcf7a
Contents?: true
Size: 784 Bytes
Versions: 3
Compression:
Stored size: 784 Bytes
Contents
require "include" require "runit/cui/testrunner" class TestPatternFormatter < TestCase def test_pattern l = Logger.new 'test::this::that' l.trace = true o = StdoutOutputter.new 'test' l.add o assert_no_exception { f = PatternFormatter.new :pattern=> "%d %6l [%C]%c %% %-40.30M" #:date_pattern=> "%Y" #:date_method => :usec Outputter['test'].formatter = f l.debug "And this?" l.info "How's this?" l.error "and a really freaking huge line which we hope will be trimmed?" e = ArgumentError.new("something barfed") e.set_backtrace Array.new(5, "trace junk at thisfile.rb 154") l.fatal e l.info [1, 3, 5] } end end CUI::TestRunner.run(TestPatternFormatter.suite)
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
revolutionhealth-log4r-2.0.0 | test/orig_tests/testpatternformatter.rb |
sml-log4r-1.0.6 | tests/testpatternformatter.rb |
riess-0.0.8 | vendor/log4r-1.0.5/tests/testpatternformatter.rb |