From 6ff09bc876f7f0567c9a4f4eedefd69f8d7dd68c Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 7 Apr 2016 11:18:41 -0700 Subject: [PATCH] Clarify LoggingApplicationListener Javadoc --- .../boot/logging/LoggingApplicationListener.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java b/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java index a7779cb7550..b30a52c4cec 100644 --- a/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java +++ b/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java @@ -50,6 +50,12 @@ import org.springframework.util.StringUtils; * logging system, otherwise a default configuration is used. Regardless, logging levels * will be customized if the environment contains {@code logging.level.*} entries. *

+ * Debug and trace logging for Spring, Tomcat, Jetty and Hibernate will be enabled when + * the environment contains {@code debug} or {@code trace} properties (i.e. if you start + * your application using {@literal java -jar myapp.jar [--debug | --trace]}). If you + * prefer to ignore these properties you can set {@link #setParseArgs(boolean) parseArgs} + * to {@code false}. + *

* By default, log output is only written to the console. If a log file is required the * {@code logging.path} and {@code logging.file} properties can be used. *