Sha256: 6415e2c3ffff8c0b7bd29e4c311be4b6c3eaeac0f0adc22c7799c46a3dce8b4b
Contents?: true
Size: 521 Bytes
Versions: 11
Compression:
Stored size: 521 Bytes
Contents
# How to use LogServer $: << File.join('..','src') require 'log4r' require 'log4r/configurator' # XML configuration is simple enough to embed here xml = %( <log4r_config> <logserver name="server" uri="tcpromp://localhost:9999"> <outputter>stdout</outputter> </logserver> </log4r_config> ) Log4r::Logger.new('log4r').add 'stdout' # to see what's going on inside Log4r::Configurator.load_xml_string xml # load it up sleep # now run logclient.rb on another terminal
Version data entries
11 entries across 11 versions & 3 rubygems