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

Version Path
sml-log4r-1.0.6 examples/logserver.rb
log4r-1.1.7 examples/logserver.rb
log4r-1.1.6 examples/logserver.rb
log4r-1.1.5 examples/logserver.rb
log4r-1.1.4 examples/logserver.rb
log4r-1.1.3 examples/logserver.rb
log4r-1.1.2 examples/logserver.rb
log4r-1.1.1 examples/logserver.rb
log4r-1.1.0 examples/logserver.rb
log4r-1.0.6 examples/logserver.rb
riess-0.0.8 vendor/log4r-1.0.5/examples/logserver.rb