Skip to content

System.out.println entries are not captured in quarkus.log #6766

@rsvoboda

Description

@rsvoboda

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

tail -f quarkus.log

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions