Coder Social home page Coder Social logo

Comments (3)

ppkarwasz avatar ppkarwasz commented on July 25, 2024

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.

mbain-cincom avatar mbain-cincom commented on July 25, 2024

@ppkarwasz

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.

ppkarwasz avatar ppkarwasz commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.