Sha256: b7133a98bbc958b4b8704ce0c3fc9808909eccb45dca5db694763ebc4560c941
Contents?: true
Size: 521 Bytes
Versions: 125
Compression:
Stored size: 521 Bytes
Contents
# How to use LogServer $: << File.join('..','lib') 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
125 entries across 87 versions & 15 rubygems