logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Haig <lh...@haigmail.com>
Subject Newbie Help
Date Thu, 22 Nov 2007 15:27:30 GMT
Hi,

I was hoping to get some help with getting the logs for our program
logging to its own logfile.

We use the log4c version and I know this is for log4j I have a more
fundamental question though.

Our log's (error crit etc..) all log to the default syslog log. I want
to be able to send the logs to another logfile.

Currently the output in the default file looks like this

Nov 25 13:06:12 mail bongo[23527]: INFO     pop3d - User admin logged in

My syslog.conf entry looks like this


#Bongo Log
bongo.*                                                 /var/log/bongo

And my lo4crc conf file looks like this

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE log4c SYSTEM "">
        <config>
                <bufsize>0</bufsize>
                <debug level="2"/>
                <nocleanup>0</nocleanup>
                <reread>1</reread>
        </config>
        <category name="root" priority="unknown" appender="bongo"/>
        <category name="msgauth" priority="unknown" appender="bongo"/>
        <category name="smtpd" priority="unknown" appender="bongo"/>
        <category name="antispamd" priority="unknown" appender="bongo"/>
        <category name="avirusd" priority="unknown" appender="bongo"/>
        <category name="imapd" priority="unknown" appender="bongo"/>
        <category name="mailproxd" priority="unknown" appender="bongo"/>
        <category name="pluspackd" priority="unknown" appender="bongo"/>
        <category name="pop3d" priority="unknown" appender="bongo"/>
        <category name="queued" priority="unknown" appender="bongo"/>
        <category name="rulesd" priority="unknown" appender="bongo"/>
        <category name="queueagnt" priority="unknown" appender="bongo"/>
        <category name="store" priority="unknown" appender="bongo"/>
        <category name="queueagnt" priority="unknown" appender="bongo"/>
        <appender name="stdout" type="stream" layout="basic"/>
        <appender name="stderr" type="stream" layout="dated"/>
        <appender name="syslog" type="syslog" layout="basic"/>
        <appender name="bongo"  type="syslog" layout="basic"/>
        <layout name="basic" type="basic"/>
        <layout name="dated" type="dated"/>
</log4c>


Have I missed something basic?

I am not one of the developers for this OSS project so please be patient.

Regards

Lance

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message