Docs about logging

- Relates #558
This commit is contained in:
Janne Valkealahti
2022-11-01 05:00:41 +00:00
parent c6e84dcfa8
commit 2427ec36a1

View File

@@ -26,3 +26,30 @@ logging:
name: shell.log
----
====
If you need different log levels.
====
[source, yaml]
----
logging:
level:
org:
springframework:
shell: debug
----
====
Passing contiguration properties as command line options is not supported but
you can use any other ways supported by boot, for example.
====
[source, bash]
----
$ java -Dlogging.level.root=debug -jar demo.jar
$ LOGGING_LEVEL_ROOT=debug java -jar demo.jar
----
====
NOTE: In a GraalVM image settings are locked during compilation which means
you can't change log levels at runtime.