Comments (3)
PropertyConfigurator#configure()
was a no-op before version 2.17.2 (cf. source code).
The call must provide a broken configuration (you can debug it by running -Dlog4j2.debug=true
), hence the logs vanish.
from logging-log4j2.
Thank you for the reply, it filled in the piece I was missing. It wasn't a broken configuration, rather an incorrect mindset on my part. Previously this application was using Log4j2 and Log4j1 for independent purposes. In 2.17.1 we were able to get the proper result based on the configure() option not doing anything and having a logger that matched in our log4j2.xml. As soon as it was actually performing an initialization it is now overwriting our log4j2 configuration with our legacy Log4j1 configuration, and our Log4j2 usage in essence no longer has loggers to work with. We will have to look into potential solutions either through context or creating a custom configuration factory, etc.
from logging-log4j2.
There is an open JIRA issue (LOG4J2-3467) to provide users a way to disable the improvement in log4j-1.2-api
introduced in version 2.17.2. We should probably consider it solving it.
from logging-log4j2.
Related Issues (20)
- Revamp the `Configuration` page HOT 2
- Revamp the `Lookups` page
- Revamp the `Layouts` page
- Revamp the `Appenders` page HOT 1
- Revamp the `Filters` page
- Revamp the `Extending` page HOT 1
- Revamp the `Plugins` page HOT 1
- Create a `Troubleshooting` page HOT 1
- Revamp the `Performance` page
- Revamp the `Asynchronous logging` page
- Revamp the `API` page
- Uniform handling of location and URIs HOT 1
- [MS14] Documentation revamp 1/5 HOT 1
- [MS15] Documentation revamp 2/5
- [MS16] Documentation revamp 3/5 HOT 1
- [MS17] Documentation revamp 4/5
- [MS18] Documentation revamp 5/5
- Revamp the `Web Applications` page
- Implement uniform password "encryption/decryption" mechanism HOT 4
- When logging from multiple threads, an appender can be broken until app restart if it rolls over HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logging-log4j2.