The examples are:
- outofthebox.rb - How to get started with minimal setup
- simpleconfig.rb - Using Log4r casually
- moderateconfig.rb - A more sophisticated config
- xmlconfig.rb and moderate.xml - XML configuration example based on #3
- rrsetup.rb and rrconfig.xml - A real example (or used to be ;-)
- logserver.rb and logclient.rb - Remote logging example
- fileroll.rb - Using RollingFileOutputter
- yaml.rb and log4r_yaml.yaml - YAML configuration example
The output will go to screen and to files in the directory logs/.
Note to RubyGems users: The syntax to require log4r as a gem is as follows:
require 'rubygems'
require_gem 'log4r'
Obviously, the examples will need to be modified to follow this.