On Wed, Jul 30, 2014 at 12:05 AM, Thorsten Schöning <tschoen...@am-soft.de> wrote:
> Guten Tag Alder Netw, > am Mittwoch, 30. Juli 2014 um 01:06 schrieben Sie: > > > How is the log4cxx buffering works exactly? > > Just look at AsyncAppender, log4cxx is Open Source. I already > described how it is working. > > > say if you specify a > > large buffer size, is the first log message sent out after the > > buffer gets full, > > From my understanding yes. > Alder> I did take a look at the code and it looks to me that the dispatch() is dispatching to all appenders without waiting for the buffer being full. If that is the case, increase the buffer size won't make a difference in terms of delaying dispatching the events. > > > or it can be sent any time after it's put into the buffer? > > You can always implement a different behavior than AsyncAppender > provides out of the box of course. > > > Also, is it possible to post log messages to a subset of the appenders > in an AsyncAppender? > > Please have a look at the API, you can retrieve attached appenders and > interact with them directly. What you can not not seem to do is > interact with which appenders get which buffer contents if > AsyncAppenders wants to post it's buffer contents. Look at > AsyncAppender::dispatch. > > > http://logging.apache.org/log4cxx/apidocs/classlog4cxx_1_1_async_appender.html > Alder> Good to know that, Thanks. > > Mit freundlichen Grüßen, > > Thorsten Schöning > > -- > Thorsten Schöning E-Mail:thorsten.schoen...@am-soft.de > AM-SoFT IT-Systeme http://www.AM-SoFT.de/ > > Telefon...........05151- 9468- 55 > Fax...............05151- 9468- 88 > Mobil..............0178-8 9468- 04 > > AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln > AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow > >