Commit 6574feea authored by Stephane Nicoll's avatar Stephane Nicoll

Document limitations of logging.pattern.*

Closes gh-5653
parent ec7d6381
...@@ -1246,15 +1246,15 @@ To help with the customization some other properties are transferred from the Sp ...@@ -1246,15 +1246,15 @@ To help with the customization some other properties are transferred from the Sp
|`logging.pattern.console` |`logging.pattern.console`
|`CONSOLE_LOG_PATTERN` |`CONSOLE_LOG_PATTERN`
|The log pattern to use on the console (stdout). (Not supported with JDK logger.) |The log pattern to use on the console (stdout). (Only supported with the default logback setup.)
|`logging.pattern.file` |`logging.pattern.file`
|`FILE_LOG_PATTERN` |`FILE_LOG_PATTERN`
|The log pattern to use in a file (if LOG_FILE enabled). (Not supported with JDK logger.) |The log pattern to use in a file (if LOG_FILE enabled). (Only supported with the default logback setup.)
|`logging.pattern.level` |`logging.pattern.level`
|`LOG_LEVEL_PATTERN` |`LOG_LEVEL_PATTERN`
|The format to use to render the log level (default `%5p`). (The `logging.pattern.level` form is only supported by Logback.) |The format to use to render the log level (default `%5p`). (Only supported with the default logback setup.)
|`PID` |`PID`
|`PID` |`PID`
......
...@@ -52,13 +52,15 @@ ...@@ -52,13 +52,15 @@
"name": "logging.pattern.console", "name": "logging.pattern.console",
"type": "java.lang.String", "type": "java.lang.String",
"description": "Appender pattern for output to the console. Only supported with the default logback setup.", "description": "Appender pattern for output to the console. Only supported with the default logback setup.",
"sourceType": "org.springframework.boot.logging.LoggingApplicationListener" "sourceType": "org.springframework.boot.logging.LoggingApplicationListener",
"defaultValue": "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"
}, },
{ {
"name": "logging.pattern.file", "name": "logging.pattern.file",
"type": "java.lang.String", "type": "java.lang.String",
"description": "Appender pattern for output to the file. Only supported with the default logback setup.", "description": "Appender pattern for output to the file. Only supported with the default logback setup.",
"sourceType": "org.springframework.boot.logging.LoggingApplicationListener" "sourceType": "org.springframework.boot.logging.LoggingApplicationListener",
"defaultValue": "%d{yyyy-MM-dd HH:mm:ss.SSS} ${LOG_LEVEL_PATTERN:-%5p} ${PID:- } --- [%t] %-40.40logger{39} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"
}, },
{ {
"name": "logging.pattern.level", "name": "logging.pattern.level",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment