# How to use LogServer $: << File.join('..','lib') require 'log4r' require 'log4r/configurator' # XML configuration is simple enough to embed here xml = %( stdout ) 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