Okay. What if I have multiple threads within a single process trying to write to the same file?
James A. N. Stauffer wrote: > > Multiple processes can't write to the same file even with > AsyncAppender. AsyncAppender is so that logging doesn't have to wait > for the message to be written when the underlying appender could take > a while to write. > > James A. N. Stauffer http://www.geocities.com/stauffer_james/ > Are you good? Take the test at http://www.livingwaters.com/good/ > > > On Wed, Jun 18, 2008 at 2:01 PM, krista <[EMAIL PROTECTED]> > wrote: >> >> I was wondering if anyone knew if there was a built in way to use a >> RollingFileAppender combined with the AsyncAppender? I have a log file >> that >> needs rollover capability and that multiple processes will be hitting. >> This >> seems like a pretty common thing to need, but I can't find any references >> to >> it anywhere. >> >> I've seen that the AsynchAppender has an addAppender method, but how >> exactly >> does that work, and what if I want to configure it all in my property >> file? >> Do I need to load the property file containing the AsynchAppender and >> then >> attach the RollingFileAppender programmatically? >> >> Thank you in advance for any responses. >> -- >> View this message in context: >> http://www.nabble.com/How-to-use-a-RollingFileAppender-asynchronously--tp17989557p17989557.html >> Sent from the Log4j - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-use-a-RollingFileAppender-asynchronously--tp17989557p18386111.html Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
