on ‎2019 Feb 16 2:14 PM
Hello Everyone,
After migration from 5.5.1.7 to 18.08 our Log4j configurations in local.properties stopped working.
The Log4j configurations are like:
log4j.logger.fullPackageName.MyClass=DEBUG
In Java we have:
import org.apache.log4j.Logger;
Logger LOG = Logger.getLogger(MyClass.class);
LOG.debug("Some text");
But this does not produce any logs in the console.
We did not override any appenders or root logger configurations.
We noticed that the log4j configurations from local.properties did not appear in HAC>Platform>Logging neither.
Log4j configurations only work if we manually apply them in HAC.
Logging configurations also work if we convert them to the new log4j2 configurations in local.properties, they will appear in HAC too:
log4j2.logger.loggername.name=packageName
log4j2.logger.loggername.level=debug
Is it possible in 18.08 to continue using the old log4j configurations unchanged or is it required to upgrade them to the new log4j2 ones?
Thanks
Request clarification before answering.
Hi - The previous behaviour couldn't be restored because of how log4j2 works. Please check the following links for more information:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.