Open ivangfr opened 2 years ago
this seems unrelated to Micronaut, we don't currently support log4j as a logging system
Hi @graemerocher, sorry for the late response. More information about this issue from my side...
Using micronaut launch and setting elasticsearch
, graalvm
and micrometer-prometheus
(link) it's generating a pom.xml
with the following logging dependencies
...
</dependencies>
...
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.17.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.17.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>1.7.36</version>
<scope>runtime</scope>
</dependency>
</dependencies>
That is why I have org.apache.logging.log4j
.
After upgrading to micronaut
to 3.7.4
and the org.apache.logging.log4j
dependencies, log4j-api
and log4j-core
, to 2.19.0
, the issue described above disappeared.
Expected Behavior
The ERROR log should not appear
Actual Behaviour
After building and staring successfully the docker native image, the following error is thrown when a request is POST to the API. In the end, the app processes the request correctly
Steps To Reproduce
Environment Information
Example Application
https://github.com/ivangfr/graalvm-quarkus-micronaut-springboot
Version
3.5.1