Add properties for logging charsets

Add `logging.charset.console` and `logging.charset.file` properties
that can be used to configure charsets for Logback/Log4J2.

Closes gh-23827
This commit is contained in:
Phillip Webb
2020-10-23 17:08:05 -07:00
parent e790828e19
commit 062bd90d87
12 changed files with 124 additions and 8 deletions

View File

@@ -2204,10 +2204,18 @@ To help with the customization, some other properties are transferred from the S
| `LOG_DATEFORMAT_PATTERN`
| Appender pattern for log date format.
| configprop:logging.charset.console[]
| `CONSOLE_LOG_CHARSET`
| The charset to use for console logging.
| configprop:logging.pattern.file[]
| `FILE_LOG_PATTERN`
| The log pattern to use in a file (if `LOG_FILE` is enabled).
| configprop:logging.charset.file[]
| `FILE_LOG_CHARSET`
| The charset to use for file logging (if `LOG_FILE` is enabled).
| configprop:logging.pattern.level[]
| `LOG_LEVEL_PATTERN`
| The format to use when rendering the log level (default `%5p`).