Re: Log4j2 Async Logging with LMAX Disruptor

2020-02-20 Thread Carter Kozak
Is there any chance you could provide a thread dump as well, even if internal details are redacted, in addition to the configuration? On Thu, Feb 20, 2020, at 19:36, Remko Popma wrote: > The queue being full means that the application is logging faster than the > underlying appenders can handle.

Re: Log4j2 Async Logging with LMAX Disruptor

2020-02-20 Thread Remko Popma
The queue being full means that the application is logging faster than the underlying appenders can handle. It’s not necessarily an indication that there’s a problem with the async loggers that sit in the middle. Things I’ve seen in the past that may cause the queue filling up: * using a custom

Re: Accessing ThreadContext via "$${ctx:ndc}" vs "${ctx:ndc}"

2020-02-20 Thread Surendar Chandra
Thanks Ralph. That is what I see most of the time except sometimes it shows "ndc":"JobFetcher" where that string JobFetcher never changes (even though we update the value in code). Since we also set one way to unwedge the system is to "touch" the xml file. Setting it to $${ctx:ndc} seems to do

Re: Accessing ThreadContext via "$${ctx:ndc}" vs "${ctx:ndc}"

2020-02-20 Thread Ralph Goers
When a value doesn’t exist and you don’t specify a default value then the value of the variable string is itself. So If you code ${ctx:ndc} and there is no value for that you will see ${ctx:ndc} in the output. Whenever StrSubstitutor finds a variable of the form $${ctx:ndc} it will simply strip

Accessing ThreadContext via "$${ctx:ndc}" vs "${ctx:ndc}"

2020-02-20 Thread Surendar Chandra
I'm building a JSON log by using something like this in my xml config: If I use a single $, for one particular value, the value seems to be stuck at a constant. Other variables are fine. If I use a double $, then it seems to work in all scenarios. I guess I should be using $$ but why is it flaky

Log4j2 Async Logging with LMAX Disruptor

2020-02-20 Thread Mark Butler
Hello team I am using Apache Log4j2 2.13.0 with LMax Disrupter 3.4.2 I encountering problems were occasionally an instance will go into deadlock. All threads are deadlocking here: org.apache.logging.log4j.core.async.AsyncLoggerDisruptor.enqueueLogMessageWhenQueueFull(RingBufferLogEventTranslator

Re: Syslog4j

2020-02-20 Thread Ralph Goers
Telling us that you overrode a class to fix a bug in the library doesn’t really help us much. What are you using syslog4j for? If you are simply trying to write log events to syslog Log4j 2 already supports that. Ralph > On Feb 20, 2020, at 8:30 AM, EDMONDO SENA wrote: > > That class has be

Re: Syslog4j

2020-02-20 Thread Matt Sicker
Perhaps some of these new features could be used to replace what you were doing before? log4j-api supports the Message API which can be used to log structured log messages such as for use in syslog. See https://logging.apache.org/log4j/2.x/manual/messages.html for the API details. Similarly, we al

Re: Syslog4j

2020-02-20 Thread EDMONDO SENA
That class has been created to face to a bug in a syslog4j library related to the handling of identity when more Appenders are used within the same VM. We've created some methods like: - append(LoggingEvent...) - initialize() for the protocol - get() and set() SyslogHost On 2020/02/20 15:2

Re: Syslog4j

2020-02-20 Thread Matt Sicker
What did you customize about that old class? We likely already support the same features you added in the v2 class. Can you tell us a little more about your use case? On Thu, Feb 20, 2020 at 09:22 EDMONDO SENA wrote: > > Well: > > We're using Log4j 2 and we've a class that extends > SysLog4jAppe

Re: Syslog4j

2020-02-20 Thread EDMONDO SENA
Well: We're using Log4j 2 and we've a class that extends SysLog4jAppenderSkeleton where the import is: org.productivity.java.syslog4j.impl.log4j.Syslog4jAppenderSkeleton.. Changing the jars the previous class is inconsistent On 2020/02/20 15:12:05, Ralph Goers wrote: > See http://logg

Re: Syslog4j

2020-02-20 Thread Ralph Goers
See http://logging.apache.org/log4j/2.x/manual/appenders.html#SyslogAppender Ralph > On Feb 20, 2020, at 8:05 AM, EDMONDO SENA wrote: > > Sorry it means that now is it impossible to use syslog4j with log4j 2? > What do

Re: Syslog4j

2020-02-20 Thread EDMONDO SENA
Sorry it means that now is it impossible to use syslog4j with log4j 2? What do you mean out of the box? //Edmondo. On 2020/02/20 15:01:25, Matt Sicker wrote: > I’d guess no, but Log4j2 comes with syslog appenders out of the box now. > > On Thu, Feb 20, 2020 at 04:30 EDMONDO SENA wrote: > >

Re: StatusLogger Urgent

2020-02-20 Thread Ralph Goers
StatusLogger is part of log4j-api-2.13.0.jar. Ralph > On Feb 20, 2020, at 6:47 AM, EDMONDO SENA wrote: > > > Hi, > > In log4j2, is there an equivalent of log4j 1.x' > LogLogfor > internal logging purposes? > >

Re: org.apache.log4j.Category

2020-02-20 Thread Ralph Goers
I don’t understand the question. I maven terms it is org.apache.logging.log4j log4j-1.2-api 2.13.0 Ralph > On Feb 20, 2020, at 1:00 AM, EDMONDO SENA wrote: > > Hi Ralph, > > Can you tell me where Can I loading log4j-1.2-api.jar in Log4j 2? > > Thanks in advance. > //Edmondo. > > >

Re: StatusLogger Urgent

2020-02-20 Thread Matt Sicker
StatusLogger is the correct one when writing plugins for Log4j2. If you’re upgrading a custom plugin from version 1, you need to change which classes it references. On Thu, Feb 20, 2020 at 07:47 EDMONDO SENA wrote: > > Hi, > > In log4j2, is there an equivalent of log4j 1.x' > LogLog< > https://l

Re: Syslog4j

2020-02-20 Thread Matt Sicker
I’d guess no, but Log4j2 comes with syslog appenders out of the box now. On Thu, Feb 20, 2020 at 04:30 EDMONDO SENA wrote: > Hi, > > Syslog4j is compatible with Log4j 2? > Kind regards. > > - > To unsubscribe, e-mail: log4j-user

StatusLogger Urgent

2020-02-20 Thread EDMONDO SENA
Hi, In log4j2, is there an equivalent of log4j 1.x' LogLogfor internal logging purposes? StatusLogger is contained in org.apache.logging.log4j.status.StatusLogger? Is StatusLogger import contained in log4j-1.2-ap

Syslog4j

2020-02-20 Thread EDMONDO SENA
Hi, Syslog4j is compatible with Log4j 2? Kind regards. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org

Re: org.apache.log4j.Category

2020-02-20 Thread EDMONDO SENA
Hi Ralph, Can you tell me where Can I loading log4j-1.2-api.jar in Log4j 2? Thanks in advance. //Edmondo. On 2020/02/19 15:39:41, Ralph Goers wrote: > If you remove the log4j 1.x jar and replace it with the log4j-1.2-api jar > from log4j 2 you will pass your security scans as Log4j 1 will