/usr/share/doc/ruby-log4r/examples/moderate.xml is in ruby-log4r 1.1.10-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | <!-- the config file used by xmlconfig.rb -->
<log4r_config>
<pre_config>
<global level="DEBUG"/>
<!-- we'll set serverlog in XML and logpath at runtime for illustration -->
<parameter name="serverlog" value="./logs/server.log"/>
</pre_config>
<!-- outputters, illustrating XML config flexibility -->
<outputter type="FileOutputter" name="server">
<filename>#{serverlog}</filename>
<trunc>false</trunc>
</outputter>
<outputter type="FileOutputter" name="client"
filename="#{logpath}/client.log"/>
<outputter type="FileOutputter" name="gui"
filename="#{logpath}/guidebug.log"/>
<outputter type="StderrOutputter" name="console" level="ERROR"/>
<!-- loggers -->
<logger name="server" level="ERROR" outputters="server, console"/>
<logger name="client" level="INFO" outputters="client, console"/>
<logger name="client::gui" trace="true">
<level>DEBUG</level>
<outputter>gui</outputter>
</logger>
</log4r_config>
|