Sha256: 9137da78d894b2dd6ca6c551bbc648ada5bc10d2dfbfe17e58890d5fba5a00b9

Contents?: true

Size: 507 Bytes

Versions: 3

Compression:

Stored size: 507 Bytes

Contents

class TestLogger < TestCase
  def test_color_outputter
    l = Logger.new 'colorizer'
    l.level = WARN      
    color_outputter = ColorOutputter.new 'so2', :colors => {:info => {:color => :color => :light_blue, :background => :red}, :debug => :light_blue }
    l.outputters << color_outputter
    assert_no_exception {
      l.debug { puts "should not show up"; "LOGBLOCKS" }
      l.warning { puts "should show up"; "LOGBLOCKS" }
      l.info { puts "should show up"; "LOGBLOCKS" }
    }    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
log4r-color-1.2.2 tests/testcoloroutput.rb
log4r-color-1.2 tests/testcoloroutput.rb
log4r-color-1.1.11 tests/testcoloroutput.rb