Re: How to migrate parameterized messages

2022-03-30 Thread Ralph Goers
If you are doing Logger logger = LogManager.getLogger(“edu.nd.MyClass”); or Logger logger = LogManager.getLogger(edu.nd.MyClass.class); then all you have to do is change the imports from org.apache.log4j to org.apache.logging.log4j. Everything else would be optional. If you are obtaining

How to migrate parameterized messages

2022-03-30 Thread Joel Griffith
Hi, I'm upgrading an application from Log4j v1 to v2. The v1 code often uses the debug()/info()/etc. methods with the `Logger.debug(Object message, Throwable throwable)` signature to throw errors while logging. In many cases, the `message` String is composed using concatenation, as with log