File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
spring-shell-docs/src/main/asciidoc Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ [[using-shell-customization-logging]]
2+ === Logging
3+
4+ On default a _Spring Boot_ application will log messages into a console which
5+ at minimum is annoying and may also mix output from a shell commands.
6+ Fortunately there is a simple way to instruct logging changes via boot properties.
7+
8+ Completely silence console logging by defining its pattern as an empty value.
9+
10+ ====
11+ [source, yaml]
12+ ----
13+ logging:
14+ pattern:
15+ console:
16+ ----
17+ ====
18+
19+ If you need log from a shell then write those into a file.
20+
21+ ====
22+ [source, yaml]
23+ ----
24+ logging:
25+ file:
26+ name: shell.log
27+ ----
28+ ====
Original file line number Diff line number Diff line change 44This section describes how you can customize the shell.
55
66include::using-shell-customization-styling.adoc[]
7+
8+ include::using-shell-customization-logging.adoc[]
You can’t perform that action at this time.
0 commit comments