How can I tell Quarkus to log only messages with severity levels at least INFO in the console (to keep it clean) but log every messages with severity level at least DEBUG in a file?
I thought that writing the following in application.properties would do the job.
quarkus.log.file.enable=true
quarkus.log.file.level=DEBUG
quarkus.log.console.level=INFO
quarkus.log.level=DEBUG
As I understand from the manual (and from this answer), this configuration should tell quarkus to set every category to DEBUG; but accept only INFO and higher levels in the console.
But it fails in a strange way. Quarkus indeed logs DEBUG and higher severity messages in a file, as expected, but it also logs some messages with DEBUG severity in the console. Here is an example.
2022-03-25 21:19:17,858 DEBUG [org.jbo.threads] (main) JBoss Threads version 3.2.0.Final
2022-03-25 21:19:19,526 DEBUG [org.hib.Version] (build-16) HHH000412: Hibernate ORM core version 5.4.29.Final
2022-03-25 21:19:21,935 DEBUG [org.hib.Version] (main) HHH000412: Hibernate ORM core version 5.4.29.Final
2022-03-25 21:19:21,969 DEBUG [org.hib.ann.com.Version] (main) HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2022-03-25 21:19:22,224 DEBUG [org.hib.dia.Dialect] (main) HHH000400: Using dialect: io.quarkus.hibernate.orm.runtime.dialect.QuarkusPostgreSQL10Dialect
2022-03-25 21:19:22,500 DEBUG [org.jbo.res.res.i18n] (main) RESTEASY002225: Deploying javax.ws.rs.core.Application: class io.github.oliviercailloux.jquestions.MyApplication
2022-03-25 21:19:22,956 DEBUG [org.jbo.threads] (main) JBoss Threads version 3.2.0.Final
2022-03-25 21:19:35,560 DEBUG [org.hib.tup.ent.EntityMetamodel] (main) HHH000157: Lazy property fetching available for: io.github.oliviercailloux.jquestions.entities.Question
2022-03-25 21:19:35,572 DEBUG [org.hib.tup.ent.EntityMetamodel] (main) HHH000157: Lazy property fetching available for: io.github.oliviercailloux.jquestions.entities.Answer
2022-03-25 21:19:58,217 INFO [io.git.oli.jqu.Startup] (main) Loading at startup due to io.quarkus.runtime.StartupEvent@5c703860.
Is this a bug? Or, what am I doing wrong?

