It seems third party vendors use their own logging methods anyway, and it would be interesting if they would provide hooks into their API's for this, because i would rather have a single log file then have a log4J file and then their file. Anyway as far as TopLink is concerned they helped me out, I have a java class(with source) that does this, so if anyone is interested I'd be happy to devulge the information. So now I have TopLink logging going to my log4j log file :)
Thanks Aaron >>> [EMAIL PROTECTED] 05/10/02 11:22AM >>> I've actually thought about doing this. You would most likely want to extend Writer in some way. The problem is how to decide when to actually log the data written to the Writer, and how should that data be split. The problem is that Writer's base unit of work is the byte, but logging uses Strings. So you run into the dilemma of converting an array of bytes into a String, and determining when to invoke the log on that String. This is all perfectly doable, but you run into a few sticky issues. Aaron Hoyt ph: 816.218.2951 VML 250 Richards Rd Suite 255 Kansas City, MO 64116 > -----Original Message----- > From: Eugene Kovelman [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 09, 2002 1:47 PM > To: [EMAIL PROTECTED] > Subject: Thirdparty logging and log4J > > > i am using TopLink, and it dumps out its own logging messages. > TopLink docs say I need to set a Writer Object to be able to log > somewhere else. Does Log4J provide something like that ? I saw > there is a SyslogWriter, but there is not enough documentation on it ? > > thanks > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>