System.out.println entries are not captured in quarkus.log
Only entries from org.jboss.logging.Logger are captured in quarkus.log
I checked https://quarkus.io/guides/logging but didn't find any info about System.out.println entries not beeing captured.
Reproducer:
build and run my-quarkus-project.zip
mvn package
java -Dquarkus.log.file.enable=true -Dquarkus.log.file.rotation.max-file-size=10k -Dquarkus.log.file.rotation.max-backup-index=20 -jar target/my-quarkus-project-1.0-SNAPSHOT-runner.jar
In the second terminal execute
for i in {1..1000}; do curl 127.0.0.1:8080/hello; sleep 0.1; done
Hello endpoint contains this snippet of the code
System.out.println(" Fooooooooo ");
LOGGER.info("logger foooo");
In the third terminal execute
You will see something like this:
2020-01-24 11:52:37,195 rs my-quarkus-project-1.0-SNAPSHOT-runner.jar[45482] INFO [org.acm.qua.sam.HelloResource] (executor-thread-1) logger foooo
2020-01-24 11:52:38,213 rs my-quarkus-project-1.0-SNAPSHOT-runner.jar[45482] INFO [org.acm.qua.sam.HelloResource] (executor-thread-1) logger foooo
2020-01-24 11:52:39,233 rs my-quarkus-project-1.0-SNAPSHOT-runner.jar[45482] INFO [org.acm.qua.sam.HelloResource] (executor-thread-1) logger foooo
2020-01-24 11:52:40,256 rs my-quarkus-project-1.0-SNAPSHOT-runner.jar[45482] INFO [org.acm.qua.sam.HelloResource] (executor-thread-1) logger foooo
System.out.printlnentries are not captured in quarkus.logOnly entries from
org.jboss.logging.Loggerare captured in quarkus.logI checked https://quarkus.io/guides/logging but didn't find any info about
System.out.printlnentries not beeing captured.Reproducer:
build and run my-quarkus-project.zip
In the second terminal execute
Hello endpoint contains this snippet of the code
In the third terminal execute
You will see something like this: