Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanrubio/a0e7a07ccff2f38a01651f181a516f9d to your computer and use it in GitHub Desktop.
Save juanrubio/a0e7a07ccff2f38a01651f181a516f9d to your computer and use it in GitHub Desktop.
Simple .log4crc to output to stdout
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE log4c SYSTEM "">
<log4c version="1.2.1">
<config>
<bufsize>0</bufsize>
<debug level="2"/>
<nocleanup>0</nocleanup>
<reread>1</reread>
</config>
<category name="root" priority="error" appender="stdout"/>
<layout name="basic" type="basic"/>
<layout name="dated" type="dated"/>
<layout name="tiz" type="tiz_layout"/>
<appender name="stdout" type="stream" layout="tiz"/>
<appender name="stderr" type="stream" layout="dated"/>
<appender name="syslog" type="syslog" layout="dated"/>
<rollingpolicy name="tizrolling" type="sizewin" maxsize="100000000" maxnum="1" />
<appender name="tizlogfile" type="rollingfile" logdir="/home/joni/temp" prefix="tizonia.log" layout="tiz" rollingpolicy="tizrolling" />
</log4c>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment