|
|
@ -727,9 +727,10 @@ As with console output, `ERROR`, `WARN` and `INFO` level messages are logged by
|
|
|
|
[[boot-features-custom-log-levels]]
|
|
|
|
[[boot-features-custom-log-levels]]
|
|
|
|
=== Log Levels
|
|
|
|
=== Log Levels
|
|
|
|
|
|
|
|
|
|
|
|
All the supported logging systems can have the logger levels set in the Spring `Environment`
|
|
|
|
All the supported logging systems can have the logger levels set in the Spring
|
|
|
|
(so for example in `application.properties`) using "logging.level.*=LEVEL" where "LEVEL" is one of
|
|
|
|
`Environment` (so for example in `application.properties`) using ``logging.level.*=LEVEL''
|
|
|
|
TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. Example `application.properties`:
|
|
|
|
where ``LEVEL'' is one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. Example
|
|
|
|
|
|
|
|
`application.properties`:
|
|
|
|
|
|
|
|
|
|
|
|
[source,properties,indent=0,subs="verbatim,quotes,attributes"]
|
|
|
|
[source,properties,indent=0,subs="verbatim,quotes,attributes"]
|
|
|
|
----
|
|
|
|
----
|
|
|
@ -738,16 +739,17 @@ logging.level.org.hibernate: ERROR
|
|
|
|
----
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[boot-features-custom-log-configuration]]
|
|
|
|
[[boot-features-custom-log-configuration]]
|
|
|
|
=== Custom log configuration
|
|
|
|
=== Custom log configuration
|
|
|
|
|
|
|
|
|
|
|
|
The various logging systems can be activated by including the appropriate libraries on
|
|
|
|
The various logging systems can be activated by including the appropriate libraries on
|
|
|
|
the classpath, and further customized by providing a suitable configuration file in the
|
|
|
|
the classpath, and further customized by providing a suitable configuration file in the
|
|
|
|
root of the classpath, or in a location specified by the Spring `Environment` property
|
|
|
|
root of the classpath, or in a location specified by the Spring `Environment` property
|
|
|
|
`logging.config`. (Note however that since logging is initialized *before* the `ApplicationContext
|
|
|
|
`logging.config`. (Note however that since logging is initialized *before* the
|
|
|
|
is created, it isn't possible to control logging from `@PropertySources` in Spring
|
|
|
|
`ApplicationContext` is created, it isn't possible to control logging from
|
|
|
|
`@Configuration` files. System properties and the conventional Spring Boot external
|
|
|
|
`@PropertySources` in Spring `@Configuration` files. System properties and the
|
|
|
|
configuration files work just fine.)
|
|
|
|
conventional Spring Boot external configuration files work just fine.)
|
|
|
|
|
|
|
|
|
|
|
|
Depending on your logging system, the following files will be loaded:
|
|
|
|
Depending on your logging system, the following files will be loaded:
|
|
|
|
|
|
|
|
|
|
|
|