Sounds very similar to what i do. I use different categories to direct my messages to another fileappender...thus..different log file. just instantiate the cateogires you need. and use them appropriately.
----- Original Message ----- From: "Tom Bednarz" <[EMAIL PROTECTED]> To: "log4j user list" <[EMAIL PROTECTED]> Sent: Wednesday, February 20, 2002 8:04 AM Subject: Multiple FileAppenders in one class > Hi, > > Is it possible to have more than one file appender in one class and log > different things to it? I like to do the following: > > Generating normal program output in one file and creating a transaction > protocol in a different file. The transaction protocol should be for > transactions only and should NOT contain any error, info etc messages. The > transaction log is sort of a 'businesslogic' file and has nothing to do with > logging levels, this means entries are made depending on a business logic > and not depending on a logging level. > > In terms of log4j I should have something like two categories for one class. > Is this somehow possible or do I have to write my own log facility (using a > PrintWriter) for that sort of thing? > > Many thanks. > > Thomas -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>