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.

> 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

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

Reply via email to