Hi,
Another confusion I'm having is how to log multiple files...
This is what I had done:
1. In my App 1, I called Logger.getLogger("MO").
This should write to a file MO.log
2. In my App 2, I called Logger.getLogger("APP").
This should write to a file APP.log
3. In my log4j.properties:
log4j.rootCategory=debug, MO, APP
log4j.appender.MO=org.apache.og4j.DailyRollingFileAppender
log4j.appender.MO.File=MO.log
log4j.appender.APP=org.apache.og4j.DailyRollingFileAppender
log4j.appender.APP.File=APP.log
I know this is not the right way to do coz it's not working.
So how do I tell in my code to write into which file. All of these
are configured in one file. Do I need multiple log4j.properties file
for different app?
Thanks,
--Kawthar
Confidential information may be contained in this e-mail and any files transmitted
with it ('Message'). If you are not the addressee indicated in this Message (or
responsible for delivery of this Message to such person), you are hereby notified that
any dissemination, distribution, printing or copying of this Message or any part
thereof is strictly prohibited. In such a case, you should delete this Message
immediately and advise the sender by return e-mail. Opinions, conclusions and other
information in this Message that do not relate to the official business of Maxis shall
be understood as neither given nor endorsed by Maxis.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]