Skip to content

Commit 2427ec3

Browse files
committed
Docs about logging
- Relates #558
1 parent c6e84dc commit 2427ec3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,30 @@ logging:
2626
name: shell.log
2727
----
2828
====
29+
30+
If you need different log levels.
31+
32+
====
33+
[source, yaml]
34+
----
35+
logging:
36+
level:
37+
org:
38+
springframework:
39+
shell: debug
40+
----
41+
====
42+
43+
Passing contiguration properties as command line options is not supported but
44+
you can use any other ways supported by boot, for example.
45+
46+
====
47+
[source, bash]
48+
----
49+
$ java -Dlogging.level.root=debug -jar demo.jar
50+
$ LOGGING_LEVEL_ROOT=debug java -jar demo.jar
51+
----
52+
====
53+
54+
NOTE: In a GraalVM image settings are locked during compilation which means
55+
you can't change log levels at runtime.

0 commit comments

Comments
 (0)