Skip to content

Commit 0ef394c

Browse files
committed
Add notes about logging
- Relates #527
1 parent 6f220e2 commit 0ef394c

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
====

spring-shell-docs/src/main/asciidoc/using-shell-customization.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
This section describes how you can customize the shell.
55

66
include::using-shell-customization-styling.adoc[]
7+
8+
include::using-shell-customization-logging.adoc[]

0 commit comments

Comments
 (0)