Reputation: 64079
I would like to run my Quarkus app in a container where the best practice is to only log to the console and not to a file.
How can I do that?
Upvotes: 1
Views: 1958
Reputation: 64079
By default Quarkus logs to both the console and to a file named quarkus.log
.
In cases where writing to the log file is not necessary (for example when running a Quarkus app in a Kubernetes Pod), quarkus.log.file.enable=false
can be used.
This property can be set either in application.properties
or be overridden at runtime (using -Dquarkus.log.file.enable=false
).
See this guide for more information about logging.
UPDATE
With this PR, logging to a file is now disabled by default.
Upvotes: 1
Reputation: 2825
To disable logging, edit your application.properties
file and add the following property:
quarkus.log.file.enable=false
Upvotes: 4