Skip to content

Commit 60e6022

Browse files
author
Phillip Webb
committed
Polish doc formatting
1 parent 55650bd commit 60e6022

File tree

2 files changed

+23
-20
lines changed

2 files changed

+23
-20
lines changed

spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -857,25 +857,26 @@ then you can do that in `application.properties` using the "logging.level" prefi
857857

858858
[source,properties,indent=0,subs="verbatim,quotes,attributes"]
859859
----
860-
logging.level.org.springframework.web: DEBUG
861-
logging.level.org.hibernate: ERROR
860+
logging.level.org.springframework.web: DEBUG
861+
logging.level.org.hibernate: ERROR
862862
----
863863

864864
You can also set the location of a file to log to (in addition to the console) using
865-
"logging.file".
865+
"logging.file".
866+
867+
To configure the more fine grained settings of a logging system you need to use the native
868+
configuration format supported by the `LoggingSystem` in question. By default Spring Boot
869+
picks up the native configuration from its default location for the system (e.g.
870+
`classpath:/logback.xml` for Logback), but you can set the location of the config file
871+
using the "logging.config" property.
866872

867-
To configure the more fine grained settings of a logging system you need to use the native configuration
868-
format supported by the `LoggingSystem` in question. By default Spring Boot picks up the native
869-
configuration from its default location for the system (e.g. `classpath:/logback.xml` for Logback), but
870-
you can set the location of the config file using the "logging.config" property.
871873

872874

873875
[[howto-configure-logback-for-loggin]]
874876
=== Configure Logback for logging
875-
If you put a `logback.xml` in the root of your classpath it will be
876-
picked up from there. Spring Boot provides a default base
877-
configuration that you can include if you just want to set levels,
878-
e.g.
877+
If you put a `logback.xml` in the root of your classpath it will be picked up from there.
878+
Spring Boot provides a default base configuration that you can include if you just want
879+
to set levels, e.g.
879880

880881
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
881882
----

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -727,27 +727,29 @@ As with console output, `ERROR`, `WARN` and `INFO` level messages are logged by
727727
[[boot-features-custom-log-levels]]
728728
=== Log Levels
729729

730-
All the supported logging systems can have the logger levels set in the Spring `Environment`
731-
(so for example in `application.properties`) using "logging.level.*=LEVEL" where "LEVEL" is one of
732-
TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. Example `application.properties`:
730+
All the supported logging systems can have the logger levels set in the Spring
731+
`Environment` (so for example in `application.properties`) using ``logging.level.*=LEVEL''
732+
where ``LEVEL'' is one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. Example
733+
`application.properties`:
733734

734735
[source,properties,indent=0,subs="verbatim,quotes,attributes"]
735736
----
736-
logging.level.org.springframework.web: DEBUG
737-
logging.level.org.hibernate: ERROR
737+
logging.level.org.springframework.web: DEBUG
738+
logging.level.org.hibernate: ERROR
738739
----
739740

740741

742+
741743
[[boot-features-custom-log-configuration]]
742744
=== Custom log configuration
743745

744746
The various logging systems can be activated by including the appropriate libraries on
745747
the classpath, and further customized by providing a suitable configuration file in the
746748
root of the classpath, or in a location specified by the Spring `Environment` property
747-
`logging.config`. (Note however that since logging is initialized *before* the `ApplicationContext
748-
is created, it isn't possible to control logging from `@PropertySources` in Spring
749-
`@Configuration` files. System properties and the conventional Spring Boot external
750-
configuration files work just fine.)
749+
`logging.config`. (Note however that since logging is initialized *before* the
750+
`ApplicationContext` is created, it isn't possible to control logging from
751+
`@PropertySources` in Spring `@Configuration` files. System properties and the
752+
conventional Spring Boot external configuration files work just fine.)
751753

752754
Depending on your logging system, the following files will be loaded:
753755

0 commit comments

Comments
 (0)