Merge pull request #11451 from izeye:logging-pattern-dateformat
* pr/11451: Polish
This commit is contained in:
commit
a6c301edb4
|
|
@ -35,9 +35,9 @@ content into your application. Rather, pick only the properties that you need.
|
|||
logging.file.max-history= # Maximum of archive log files to keep. Only supported with the default logback setup.
|
||||
logging.file.max-size= # Maximum log file size. Only supported with the default logback setup.
|
||||
logging.level.*= # Log levels severity mapping. For instance, `logging.level.org.springframework=DEBUG`
|
||||
logging.path= # Location of the log file. For instance, `/var/log`
|
||||
logging.path= # Location of the log file. For instance, `/var/log`.
|
||||
logging.pattern.console= # Appender pattern for output to the console. Supported only with the default Logback setup.
|
||||
logging.pattern.dateformat= # Appender pattern for log dateformat (default yyyy-MM-dd HH:mm:ss.SSS). Only supported with the default logback setup.
|
||||
logging.pattern.dateformat=yyyy-MM-dd HH:mm:ss.SSS # Appender pattern for log date format. Supported only with the default Logback setup.
|
||||
logging.pattern.file= # Appender pattern for output to a file. Supported only with the default Logback setup.
|
||||
logging.pattern.level= # Appender pattern for log level (default: %5p). Supported only with the default Logback setup.
|
||||
logging.register-shutdown-hook=false # Register a shutdown hook for the logging system when it is initialized.
|
||||
|
|
|
|||
|
|
@ -1616,13 +1616,13 @@ To help with the customization, some other properties are transferred from the S
|
|||
|
||||
|`logging.file.max-size`
|
||||
|`LOG_FILE_MAX_SIZE`
|
||||
|Maximum log file size (if LOG_FILE enabled). (Only supported with the default logback
|
||||
|Maximum log file size (if LOG_FILE enabled). (Only supported with the default Logback
|
||||
setup.)
|
||||
|
||||
|`logging.file.max-history`
|
||||
|`LOG_FILE_MAX_HISTORY`
|
||||
|Maximum number of archive log files to keep (if LOG_FILE enabled). (Only supported with
|
||||
the default logback setup.)
|
||||
the default Logback setup.)
|
||||
|
||||
|`logging.path`
|
||||
|`LOG_PATH`
|
||||
|
|
@ -1630,18 +1630,22 @@ To help with the customization, some other properties are transferred from the S
|
|||
|
||||
|`logging.pattern.console`
|
||||
|`CONSOLE_LOG_PATTERN`
|
||||
|The log pattern to use on the console (stdout). (Only supported with the default logback
|
||||
|The log pattern to use on the console (stdout). (Only supported with the default Logback
|
||||
setup.)
|
||||
|
||||
|`logging.pattern.dateformat`
|
||||
|`LOG_DATEFORMAT_PATTERN`
|
||||
|Appender pattern for log date format. (Only supported with the default Logback setup.)
|
||||
|
||||
|`logging.pattern.file`
|
||||
|`FILE_LOG_PATTERN`
|
||||
|The log pattern to use in a file (if `LOG_FILE` is enabled). (Only supported with the
|
||||
default logback setup.)
|
||||
default Logback setup.)
|
||||
|
||||
|`logging.pattern.level`
|
||||
|`LOG_LEVEL_PATTERN`
|
||||
|The format to use when rendering the log level (default `%5p`). (Only supported with the
|
||||
default logback setup.)
|
||||
default Logback setup.)
|
||||
|
||||
|`PID`
|
||||
|`PID`
|
||||
|
|
|
|||
|
|
@ -91,6 +91,12 @@
|
|||
"description": "Log levels severity mapping. For instance, 'logging.level.org.springframework=DEBUG'",
|
||||
"sourceType": "org.springframework.boot.context.logging.LoggingApplicationListener"
|
||||
},
|
||||
{
|
||||
"name": "logging.path",
|
||||
"type": "java.lang.String",
|
||||
"description": "Location of the log file. For instance, '/var/log'.",
|
||||
"sourceType": "org.springframework.boot.context.logging.LoggingApplicationListener"
|
||||
},
|
||||
{
|
||||
"name": "logging.pattern.console",
|
||||
"type": "java.lang.String",
|
||||
|
|
@ -98,6 +104,13 @@
|
|||
"sourceType": "org.springframework.boot.context.logging.LoggingApplicationListener",
|
||||
"defaultValue": "%clr(%d{${LOG_DATEFORMAT_PATTERN:-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.dateformat",
|
||||
"type": "java.lang.String",
|
||||
"description": "Appender pattern for log date format. Supported only with the default Logback setup.",
|
||||
"sourceType": "org.springframework.boot.context.logging.LoggingApplicationListener",
|
||||
"defaultValue": "yyyy-MM-dd HH:mm:ss.SSS"
|
||||
},
|
||||
{
|
||||
"name": "logging.pattern.file",
|
||||
"type": "java.lang.String",
|
||||
|
|
@ -112,19 +125,6 @@
|
|||
"sourceType": "org.springframework.boot.context.logging.LoggingApplicationListener",
|
||||
"defaultValue": "%5p"
|
||||
},
|
||||
{
|
||||
"name": "logging.pattern.dateformat",
|
||||
"type": "java.lang.String",
|
||||
"description": "Appender pattern for log dateformat. Only supported with the default logback setup.",
|
||||
"sourceType": "org.springframework.boot.logging.LoggingApplicationListener",
|
||||
"defaultValue": "yyyy-MM-dd HH:mm:ss.SSS"
|
||||
},
|
||||
{
|
||||
"name": "logging.path",
|
||||
"type": "java.lang.String",
|
||||
"description": "Location of the log file. For instance, '/var/log'",
|
||||
"sourceType": "org.springframework.boot.context.logging.LoggingApplicationListener"
|
||||
},
|
||||
{
|
||||
"name": "logging.register-shutdown-hook",
|
||||
"type": "java.lang.Boolean",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<configuration>
|
||||
<property name="CONSOLE_LOG_PATTERN" value="foo" />
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml" />
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml" />
|
||||
</configuration>
|
||||
|
|
|
|||
Loading…
Reference in New Issue