Merge pull request #18295 from brabenetz
* pr/18295: Polish "Fix typo in logback example" Fix typo in logback example Closes gh-18295
This commit is contained in:
@@ -1308,7 +1308,7 @@ A typical custom `logback.xml` file would look something like this:
|
||||
----
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<include resource="org/springframework/boot/logging/logback/default.xml"/>
|
||||
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
|
||||
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
|
||||
<root level="INFO">
|
||||
<appender-ref ref="CONSOLE" />
|
||||
@@ -1325,7 +1325,7 @@ Your logback configuration file can also make use of System properties that the
|
||||
* `$\{LOG_EXCEPTION_CONVERSION_WORD}`: Whether `logging.exception-conversion-word` was set in Boot's external configuration.
|
||||
|
||||
Spring Boot also provides some nice ANSI color terminal output on a console (but not in a log file) by using a custom Logback converter.
|
||||
See the `CONSOLE_LOG_PATTERN` in the `default.xml` configuration for an example.
|
||||
See the `CONSOLE_LOG_PATTERN` in the `defaults.xml` configuration for an example.
|
||||
|
||||
If Groovy is on the classpath, you should be able to configure Logback with `logback.groovy` as well.
|
||||
If present, this setting is given preference.
|
||||
|
||||
Reference in New Issue
Block a user