Re: "ERROR StatusLogger Reconfiguration failed" when running log4j-1.2-api from uber-jar

2022-07-07 Thread Ralph Goers
e.logging.log4j.core` package. The plugins from >> `log4j-1.2-api` are not in this package. Instead of deleting these >> files you should merge them using the Maven shade plugin proposed by >> Ralph. >> > > Thx Piotr, > > This is interesting. The reason

Re: "ERROR StatusLogger Reconfiguration failed" when running log4j-1.2-api from uber-jar

2022-07-07 Thread Alain Désilets
he reason why I added this filter is that I was getting a log4j2 ERROR StatusLogger Unrecognized conversion specifier Reading about this, I found several posts that said the solution was to filter the Log4j2Plugins.dat files. So I should merge the files instead? Question: Would I get the same iss

Re: "ERROR StatusLogger Reconfiguration failed" when running log4j-1.2-api from uber-jar

2022-07-07 Thread Piotr P. Karwasz
Hi Alain, On Thu, 7 Jul 2022 at 11:35, Alain Désilets wrote: > If you look at my pom, you can see that there is a filter in the > configuration of the shade plugin that remove the Log4j2Plugins.dat files. > This seems to work because > > jar -tf iutools-core-1.0.2-jar-with-dependencies.jar |

Re: "ERROR StatusLogger Reconfiguration failed" when running log4j-1.2-api from uber-jar

2022-07-07 Thread Alain Désilets
Le jeu. 7 juill. 2022, 2 h 54 a.m., Ralph Goers a écrit : > When you run as an uber jar you are most likely breaking things. > > Log4j uses a file named Log4j2Plugins.dat to define its plugins. Every jar > that has Log4j plugins will have one. When you create an uber jar most > likely only one

Re: "ERROR StatusLogger Reconfiguration failed" when running log4j-1.2-api from uber-jar

2022-07-07 Thread Ralph Goers
context of an >> uber-jar created with the maven shade plugin and am experiencing issues. >> >> I wrote a simple HelloWorld class that illustrates the issue. >> >> When I run this class through intelliJ, everything works fine. But when I >> run it through

Re: "ERROR StatusLogger Reconfiguration failed" when running log4j-1.2-api from uber-jar

2022-07-06 Thread Alain Désilets
un it through a terminal, I get > > ERROR StatusLogger Reconfiguration failed: No configuration found for > '55f96302' at 'null' in 'null' > > > In both cases, I invoke the command with > > -Dlog4j.configuration=/path/to/my/log4j.properties > > > And the l

"ERROR StatusLogger Reconfiguration failed" when running log4j-1.2-api from uber-jar

2022-07-06 Thread Alain Désilets
a terminal, I get ERROR StatusLogger Reconfiguration failed: No configuration found for '55f96302' at 'null' in 'null' In both cases, I invoke the command with -Dlog4j.configuration=/path/to/my/log4j.properties And the log4j.properties is in the old log4j style (i.e. NOT log4j2 style). Not sure

Synchronization Issues Between StatusLogger and AsyncRoot

2020-06-08 Thread Mitchell Rathbun (BLOOMBERG/ 731 LEX)
occurred processing Appender WINGMAN java.util.ConcurrentModificationException This shows an earlier line get overwritten when the ConcurrentModificationException occurs. I need to figure out what is causing this and why StatusLogger does not append to the end of the file. Our log4j2 config file

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' > LogLog<https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/helpers/LogLog.html>for

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' >

StatusLogger Urgent

2020-02-20 Thread EDMONDO SENA
Hi, In log4j2, is there an equivalent of log4j 1.x' LogLog<https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/helpers/LogLog.html>for internal logging purposes? StatusLogger is contained in org.apache.logging.log4j.status.StatusLogger? Is StatusLogger import contained in log

Re: StatusLogger Multiple logging implementations found

2019-08-26 Thread Ralph Goers
og4j2. > > >org.apache.logging.log4j >log4j-to-slf4j >2.11.1 > > > But now on starting the application, I am seeing some warnings like below > > DEBUG StatusLogger org.slf4j.helpers.Log4jLoggerFactory is not on > classpath. Good! > DEBUG StatusLog

StatusLogger Multiple logging implementations found

2019-08-26 Thread Debraj Manna
tps://www.elastic.co/guide/en/elasticsearch/client/java-api/current/_using_another_logger.html> for using a different logger other than log4j2. org.apache.logging.log4j log4j-to-slf4j 2.11.1 But now on starting the application, I am seeing some warnings like below DEBUG Status

Re: StatusLogger

2015-11-30 Thread Ralph Goers
roth element of the parameters array to be the > original object that was logged? > > Thanks, > Nick > >> Subject: Re: StatusLogger >> From: ralph.go...@dslextreme.com >> Date: Fri, 20 Nov 2015 12:08:38 -0700 >> To: log4j-user@logging.apache.org >> >> OK - so it so

RE: StatusLogger

2015-11-30 Thread Nicholas Duane
I'm not necessarily after the string. I'm trying to get the original object that was passed to one of the logging methods. It could have been a string or some complex object. Thanks, Nick > Subject: Re: StatusLogger > From: ralph.go...@dslextreme.com > Date: Mon, 30 Nov 2015 08:30

Re: StatusLogger

2015-11-30 Thread Ralph Goers
original object > that was passed to one of the logging methods. It could have been a string > or some complex object. > > Thanks, > Nick > >> Subject: Re: StatusLogger >> From: ralph.go...@dslextreme.com >> Date: Mon, 30 Nov 2015 08:30:37 -0700 >> To: log4j-u

Re: StatusLogger

2015-11-30 Thread Ralph Goers
the string. I'm trying to get the original object >> that was passed to one of the logging methods. It could have been a string >> or some complex object. >> >> Thanks, >> Nick >> >>> Subject: Re: StatusLogger >>> From: ralph.go...@dslextreme

RE: StatusLogger

2015-11-30 Thread Nicholas Duane
error message"); within the appender I want to "failover" this event to the appender's logger. Is that possible? Thanks, Nick > Subject: Re: StatusLogger > From: ralph.go...@dslextreme.com > Date: Mon, 30 Nov 2015 13:01:23 -0700 > To: log4j-user@logging.apache.org > &

Re: StatusLogger

2015-11-30 Thread Ralph Goers
;failover" this event to the appender's logger. > Is that possible? > > Thanks, > Nick > >> Subject: Re: StatusLogger >> From: ralph.go...@dslextreme.com >> Date: Mon, 30 Nov 2015 13:01:23 -0700 >> To: log4j-user@logging.apache.org >> >> To

RE: StatusLogger

2015-11-30 Thread Nicholas Duane
to be the original object that was logged? Thanks, Nick > Subject: Re: StatusLogger > From: ralph.go...@dslextreme.com > Date: Fri, 20 Nov 2015 12:08:38 -0700 > To: log4j-user@logging.apache.org > > OK - so it sounds like you are fine. > > Ralph > > > > On Nov 2

Re: StatusLogger

2015-11-23 Thread Mikael Ståldal
municating with > the http endpoint there's not much we can report on that, though I guess we > could write to the StatusLogger at that point. > > I hope I explained it well enough so that you understand what it is we're > trying to do. > > Thanks, > Nick > > > Subject:

RE: StatusLogger

2015-11-20 Thread Nicholas Duane
The code happens to be a log4j2 appender, so it sounds like you're saying we should be using the StatusLogger, correct? The issue is that we want to capture the events from our appenders to a central location. Thanks, Nick > Subject: Re: StatusLogger > From: ralph.go...@dslextreme.com

Re: StatusLogger

2015-11-20 Thread Gary Gregory
Maybe we should rename "StatusLogger" to something more "internal" sounding like "CoreLogger" or "InternalLogger"? Gary On Thu, Nov 19, 2015 at 6:01 PM, Ralph Goers <ralph.go...@dslextreme.com> wrote: > Yes, the StatusLogger is how Log4j logs

Re: StatusLogger

2015-11-20 Thread Ralph Goers
get forwarded to this logging appender (via the > configuration) in hopes to get these issues to a central location. Of course > if the http appender has trouble communicating with the http endpoint there's > not much we can report on that, though I guess we could write to the > StatusLogger at that po

RE: StatusLogger

2015-11-20 Thread Nicholas Duane
l location. Of course if the http appender has trouble communicating with the http endpoint there's not much we can report on that, though I guess we could write to the StatusLogger at that point. I hope I explained it well enough so that you understand what it is we're trying to do. Thanks, Nick

RE: StatusLogger

2015-11-20 Thread Nicholas Duane
That's what we're doing. The appender it writing to a logger and via the configuration we have that going to this http endpoint. We're careful to ensure that the events raised by our appender don't come back to itself. Thanks, Nick > Subject: Re: StatusLogger > From: ra

Re: StatusLogger

2015-11-20 Thread Ralph Goers
What do you mean by “capture the events from our appenders”? The StatusLogger is primarily used during configuration or to log errors that occur in the appender. If you are trying to capture the events being logged that sounds a bit odd as that is the purpose of an appender. If you want

Re: StatusLogger

2015-11-20 Thread Ralph Goers
nsure that the events raised by our appender don't come back to itself. > > Thanks, > Nick > >> Subject: Re: StatusLogger >> From: ralph.go...@dslextreme.com >> Date: Fri, 20 Nov 2015 11:04:57 -0700 >> To: log4j-user@logging.apache.org >> >> You can

StatusLogger

2015-11-19 Thread Nicholas Duane
I'm trying to get information on the StatusLogger. I've searched and so far the log4j docs say: "Records events that occur in the logging system." There are also a bunch of articles related to people having problems with the StatusLogger. I'm just looking to find out what it is.

Re: StatusLogger

2015-11-19 Thread Ralph Goers
Yes, the StatusLogger is how Log4j logs things that happen within Log4j itself. If you are writing plugins for Log4j those should also use the StatusLogger as they effectively become part of Log4j. If the are regular application code then they should not use the StatusLogger. Although

Re: Send StatusLogger output to Syslog appender

2015-07-27 Thread Gary Gregory
Ralph, I fine point I missed, thank you. Would it be too weird to provide a bridge StatusListener that forwards to an Appender or to all of Log4j? Gary On Mon, Jul 27, 2015 at 10:09 AM, Ralph Goers ralph.go...@dslextreme.com wrote: Gary, This is the StatusLogger. Messages are via

Re: Send StatusLogger output to Syslog appender

2015-07-27 Thread Ralph Goers
Gary, This is the StatusLogger. Messages are via StatusListeners. The only one we provide is the StatusConsoleListener. If a user wants to do something else they need to implement their own StatusListener and register it. Ralph On Jul 27, 2015, at 9:52 AM, Gary Gregory garydgreg

Send StatusLogger output to Syslog appender

2015-07-27 Thread David KOCH
Hello, How do I configure log4j2 to send StatusLogger output to a Syslog appender? Our application runs on several instances and logs to a remote instance for centralised logging, however status logging only appears in the logs on each instance. Thank you, /David

Re: log4j 2.0 - About StatusLogger logging level and console output

2014-08-03 Thread Remko Popma
a little bit in the code and found that the StatusLogger logs its messages either to the listeners (if there's at least one) or to a SimpleLogger (logger) which is initialized in the constructor (method StatusLogger#logMessage()). I found that there was a JMX listener registered so I

Re: log4j 2.0 - About StatusLogger logging level and console output

2014-08-03 Thread Ralph Goers
Nope. The ConsoleListener is only added when there is a status attribute on a configuration element. StatusLogger doesn’t ever register a ConsoleListener itself. StatusConfiguration in core does that. Ralph On Aug 3, 2014, at 12:39 AM, Remko Popma remko.po...@gmail.com wrote: I haven't

Re: log4j 2.0 - About StatusLogger logging level and console output

2014-08-03 Thread Remko Popma
Oh. But if listeners.size() = 0 statuslogger calls logger.logMessage() where logger is a SimpleLogger (to the console). You're saying that doesn't work? Sent from my iPhone On 2014/08/03, at 16:58, Ralph Goers ralph.go...@dslextreme.com wrote: Nope. The ConsoleListener is only added when

Re: log4j 2.0 - About StatusLogger logging level and console output

2014-08-02 Thread Ralph Goers
in log4j 2.x and apparently it should be by setting log4j2.StatusLogger.level=DEBUG Still nothing, so I dug a little bit in the code and found that the StatusLogger logs its messages either to the listeners (if there's at least one) or to a SimpleLogger (logger) which is initialized

Re: log4j 2.0 - About StatusLogger logging level and console output

2014-08-01 Thread Marco Cosentino
. In log4j 1.x you would set the system property log4j.debug. I thought that the mechanism was similar in log4j 2.x and apparently it should be by setting log4j2.StatusLogger.level=DEBUG Still nothing, so I dug a little bit in the code and found that the StatusLogger logs its messages either

Re: log4j 2.0 - About StatusLogger logging level and console output

2014-08-01 Thread Remko Popma
them. In log4j 1.x you would set the system property log4j.debug. I thought that the mechanism was similar in log4j 2.x and apparently it should be by setting log4j2.StatusLogger.level=DEBUG Still nothing, so I dug a little bit in the code and found that the StatusLogger logs its

log4j 2.0 - About StatusLogger logging level and console output

2014-07-31 Thread Marco Cosentino
=DEBUG Still nothing, so I dug a little bit in the code and found that the StatusLogger logs its messages either to the listeners (if there's at least one) or to a SimpleLogger (logger) which is initialized in the constructor (method StatusLogger#logMessage()). I found that there was a JMX

Re: log4j 2.0 - About StatusLogger logging level and console output

2014-07-31 Thread Ralph Goers
that the mechanism was similar in log4j 2.x and apparently it should be by setting log4j2.StatusLogger.level=DEBUG Still nothing, so I dug a little bit in the code and found that the StatusLogger logs its messages either to the listeners (if there's at least one) or to a SimpleLogger

Re: log4j 2.0 - About StatusLogger logging level and console output

2014-07-31 Thread Remko Popma
in the code and found that the StatusLogger logs its messages either to the listeners (if there's at least one) or to a SimpleLogger (logger) which is initialized in the constructor (method StatusLogger#logMessage()). I found that there was a JMX listener registered so I disabled JMX beans

StatusLogger doesn't honor reassignments of System.err made after its construction

2014-02-13 Thread Aksamit, Rafal (Rafal)
is successfully configured and started. For example if there's a problem with log4j2 configuration file (wrong syntax or file doesn't exist) log4j2 uses StatusLogger to print an error to System.err: ERROR StatusLogger Unable to access file:/C:/log_config.xml%20 java.io.FileNotFoundException: C

ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger

2013-08-20 Thread King Solo
-cp launcher.jar; lib\* . I got a ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger Please give me some advice and where to look for the answer. Thanks! BR//Wei

Re: ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger

2013-08-20 Thread Roland
http://apache-logging.6191.n7.nabble.com/Discussion-about-correct-initialization-of-log4j2-in-OSGi-context-td39733.html -- View this message in context: http://apache-logging.6191.n7.nabble.com/ERROR-StatusLogger-Unable-to-locate-a-logging-implementation-using-SimpleLogger-tp39952p39955.html