Add notes about logging

- Relates #527
This commit is contained in:
Janne Valkealahti
2022-09-14 15:30:54 +01:00
parent 6f220e2ea4
commit 0ef394c47e
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
[[using-shell-customization-logging]]
=== Logging
On default a _Spring Boot_ application will log messages into a console which
at minimum is annoying and may also mix output from a shell commands.
Fortunately there is a simple way to instruct logging changes via boot properties.
Completely silence console logging by defining its pattern as an empty value.
====
[source, yaml]
----
logging:
pattern:
console:
----
====
If you need log from a shell then write those into a file.
====
[source, yaml]
----
logging:
file:
name: shell.log
----
====

View File

@@ -4,3 +4,5 @@
This section describes how you can customize the shell.
include::using-shell-customization-styling.adoc[]
include::using-shell-customization-logging.adoc[]