Re: monitorInterval not working in tomcat

2017-12-19 Thread Ralph Goers
I would suggest you try it with See http://logging.apache.org/log4j/2.x/manual/configuration.html#Automatic_Reconfiguration Ralph > On Dec 19, 2017, at 5:11 PM, Enric Jaen

Re: monitorInterval not working in tomcat

2017-12-19 Thread Enric Jaen
Please any suggestion why auto-configuration is not working? Enric my libs: log4j-1.2-api-2.10.0.jar      log4j-api-2.10.0.jar      log4j-core-2.10.0.jar     log4j-iostreams-2.10.0.jar    log4j-jcl-2.10.0.jar      log4j-jul-2.10.0.jar      log4j-slf4j-impl-2.10.0.jar  

Re: Log4j Migration from 1.x to 2.x

2017-12-19 Thread Matt Sicker
Is LogLog just an event logger? There's a new EventLogger API that lets you log generic events. Another option might be to use Lombok and add @Log4j2 to your class to get a logger field automatically. On 19 December 2017 at 17:29, Praveen Kumar Gunasekaran < praveenkumarg...@gmail.com> wrote: >

Re: Migrating from log4j1 to log4j2

2017-12-19 Thread Ralph Goers
OK. But I am still unclear on what you want the behavior to be. Sometimes you speak of reconfiguring and sometimes not. For example, why do you want to “remember the configuration when reconfiguring”? The “normal” behavior of Log4j 2 when reconfiguring based on a change to the configuration

Re: Log4j Migration from 1.x to 2.x

2017-12-19 Thread Praveen Kumar Gunasekaran
Ralph, Sure. One of the examples that i can give as of now is for LogLog class. We use LogLog class for exception handling. For any issues thrown during the logic, we catch the exception and throw the error using LogLog like below, LogLog.error( "The error thrown during the

Re: Migrating from log4j1 to log4j2

2017-12-19 Thread Paladox
We set it to null so that we can load the configuation file without resetting anything. So if we set the logger to null and load the configuation file it would not erase anything like the appenders we added with java instead it would just add back the loggers we set to null and use the level

Re: Log4j Migration from 1.x to 2.x

2017-12-19 Thread Ralph Goers
I will give the same answer I gave to another user just last week. You are better off telling us what you are trying to achieve then asking questions like below. Log4j 2 works very differently than Log4j 1 and has more capabilities built in. It is better to take advantage of that then simply

Re: Migrating from log4j1 to log4j2

2017-12-19 Thread Ralph Goers
I still have no idea why you think you need to reset the log level to null. When you reconfigure you are going to get a brand new configuration with everything reset anyway. If I was doing what you say you want to do I would create a configuration file that has the stuff that you always want

Log4j Migration from 1.x to 2.x

2017-12-19 Thread Praveen Kumar Gunasekaran
Hi, I am working on migrating our application from Log4J 1.2.15 version to latest Log4J 2.10 version. I did look into the documentation for migration https://logging.apache.org/log4j/2.x/manual/migration.html The above link helped me in some of the issues but still i am not able to find the

Re: Migrating from log4j1 to log4j2

2017-12-19 Thread Paladox
Thanks, hmm. Im a little unsure how to do this part now. Im only stuck on this last part. Then we can migrate to log42. Im wondering how do i get log4j2 to remember the configuation when reconfiguring. As all i need is to reset the log level to null then load the file which reads the logging

Log4j2 Async logger fallback method

2017-12-19 Thread Fröstl , Christian
Hi, I currently don’t find any documentation regarding the fallback methods of the log4j2 async logger. What happens when the AsyncLogger.RingBufferSize is too small to log all entries from a burst? Will the application fall back into sync logging and slow down the application or will the new

Re: A consult about log4j rollover policy

2017-12-19 Thread Ralph Goers
Please direct questions to the Log4j user’s list. You can use the CronTriggeringPolicy to trigger time-based events without requiring a log event to trigger it. Ralph > On Dec 19, 2017, at 6:46 AM, diligentapa wrote: > > Dear Rgoers, > It's my honor to send this