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 ou

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 the

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

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 wrote: > Yes, the StatusLogger is how Log4j logs things that happen within Log4j >

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 to

RE: StatusLogger

2015-11-20 Thread Nicholas Duane
ues 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 point. I hope I explained it well enough so that you understand what it is we're

Re: StatusLogger

2015-11-20 Thread Ralph Goers
s 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

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: Status

Re: StatusLogger

2015-11-20 Thread Ralph Goers
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

Re: StatusLogger

2015-11-23 Thread Mikael Ståldal
nicating 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-30 Thread Nicholas Duane
rray 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 > > > >

Re: StatusLogger

2015-11-30 Thread Ralph Goers
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 sounds like

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

Re: StatusLogger

2015-11-30 Thread Ralph Goers
gt; 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-user@logging.ap

Re: StatusLogger

2015-11-30 Thread Ralph Goers
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 Nicholas Duane
above or: logger.Error("this is my 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 -070

Re: StatusLogger

2015-11-30 Thread Ralph Goers
e object. I'm trying to see how I can "resubmit" this event to the > appender's logger in a consistent fashion regardless of how it was originally > logged. So whether I do the above or: > > logger.Error("this is my error message"); > > within the

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 i

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'

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>

StatusLogger Multiple logging implementations found

2019-08-26 Thread Debraj Manna
lt;https://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 S

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: StatusLogger Multiple logging implementations found

2019-08-26 Thread Ralph Goers
han 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 StatusLogger org.slf4j.helpers.Log4jLoggerFactory is not on > classpath. Good! > DEBUG Stat

Synchronization Issues Between StatusLogger and AsyncRoot

2020-06-08 Thread Mitchell Rathbun (BLOOMBERG/ 731 LEX)
ption 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

Re: Send StatusLogger output to Syslog appender

2015-07-27 Thread Gary Gregory
You need to configure log4j: Please see https://logging.apache.org/log4j/2.x/manual/configuration.html Gary On Mon, Jul 27, 2015 at 3:17 AM, David KOCH wrote: > Hello, > > How do I configure log4j2 to send StatusLogger output to a Syslog appender? > > Our application runs on se

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 wrote: >

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 wrote: > Gary, > > This is the StatusLogger. Messages are via StatusListeners. The

Re: Send StatusLogger output to Syslog appender

2015-07-27 Thread David KOCH
Hello, Thank you for your answers. I gather this is not possible purely by configuring log4j2? I could implement a ConfigurationListener which logs changed configurations to a regular logger but how would that re-act if the new configuration contains some invalid XML? The StatusLogger supplies

Re: Send StatusLogger output to Syslog appender

2015-07-27 Thread Ralph Goers
StatusLogger was not meant for that kind of flexibility as it is for diagnostics of the logging system. While in theory it would be possible to create a StatusListener that binds to an Appender I don’t believe it would be simple. Plus, it couldn’t use Plugins to be configured. Frankly, it

Re: Send StatusLogger output to Syslog appender

2015-07-27 Thread Ralph Goers
gt; to a regular logger but how would that re-act if the new configuration > contains some invalid XML? The StatusLogger supplies some feedback in that > cases. > > Regards, > > /David > > On 27 July 2015 at 19:13, Gary Gregory wrote: > >> Ralph, >> &g

log4j 2.0 - About StatusLogger logging level and console output

2014-07-31 Thread Marco Cosentino
2.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 in the constructor (method StatusLogger#logMessage()). I f

ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger

2013-08-19 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

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

2014-02-13 Thread Aksamit, Rafal (Rafal)
messages until log4j2 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%2

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

2014-07-31 Thread Ralph Goers
g". > > 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 to the listeners (if

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

2014-07-31 Thread Remko Popma
couldn't manage to get 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 lit

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

2014-08-01 Thread Marco Cosentino
"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 to the listeners (if there's at least

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

2014-08-01 Thread Remko Popma
ying to get log4j 2.0 debug information printed out in the console >>> but I couldn't manage to get 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 appa

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

2014-08-02 Thread Ralph Goers
nformation printed out in the console >>>> but I couldn't manage to get 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

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

2014-08-03 Thread Remko Popma
I'm trying to get log4j 2.0 debug information printed out in the console >>>>> but I couldn't manage to get them. >>>>> In log4j 1.x you would set the system property "log4j.debug". >>>>> >>>>> I thought that the mechanism was simila

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 wrote: > I haven't looked at the co

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 wrote: > > Nope. The ConsoleListener is only added

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

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

2022-07-06 Thread Alain Désilets
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

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 >

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

2022-07-06 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 a t

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 is

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

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

2022-07-07 Thread Alain Désilets
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 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