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

2017-12-19 Thread Ralph Goers
According to https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/helpers/LogLog.html that class is used to log stuff internal to Log4j. Log4j 2 uses the StatusLogger for this. StatusLogger uses the Lo

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

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 tr

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 repl