Sha256: 5511f9b2509c4bdd29c3de8fddf49bd7eebcf7b265498d56c26625e244476814

Contents?: true

Size: 533 Bytes

Versions: 2

Compression:

Stored size: 533 Bytes

Contents

# How to use LogServer

$: << File.join('..','lib')
require 'log4r-color'
require 'log4r-color/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

2 entries across 2 versions & 1 rubygems

Version Path
log4r-color-1.2.2 examples/logserver.rb
log4r-color-1.2 examples/logserver.rb