-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Springboot - not replace spring propreties in log4j.xml #1267
Comments
Logging in a Spring Boot application is configured at least twice:
If you want to use Spring's enviroment to configure your logging system you have to options:
|
@ppkarwasz I have the same problem since I upgraded from 2.17.2 to 2.19 (Spring boot 2.3.9) But since 2.18 it stopped working because of the new way to load LoggingSystemFactory (spring.factories) EDIT : It don't work because LoggingSystemFactory does not exist before Spring 2.4, the documentation mention that the lib require Spring boot 2.0.3 or 2.1.1, which is outdated since Log4J 2.18 |
I am closing this for lack of activity. I think that:
Fill free to reopen the issue. |
Description
I use the log4j in the springBoot and i add the artifactId "log4j-spring-boot" for enable the use the springboot properties in the log4j.xml.
When i use inside the File, it's work very well, but when i try use in the File header, the log4j send the error.
In summary, below i pasted the code, but when i try use the ${spring:log4j.solver.service.path}, the system throw the error (log)
Configuration
Version: 2.19.0
Operating system: Windows 10
JDK: Java 17 (Adoptium)
application.properties file:
LOG4J.XML file
Logs
Reproduction
Configure the springboot app and use the Log4j.xml and applicatio.proprerties informed in this message and reproduce the error.
The text was updated successfully, but these errors were encountered: