Closes gh-11451
pull/11458/head
Johnny Lim 7 years ago committed by Stephane Nicoll
parent 0b02415943
commit a462255383

@ -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-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.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.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.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.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.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. 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` |`logging.file.max-size`
|`LOG_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.) setup.)
|`logging.file.max-history` |`logging.file.max-history`
|`LOG_FILE_MAX_HISTORY` |`LOG_FILE_MAX_HISTORY`
|Maximum number of archive log files to keep (if LOG_FILE enabled). (Only supported with |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` |`logging.path`
|`LOG_PATH` |`LOG_PATH`
@ -1630,18 +1630,22 @@ To help with the customization, some other properties are transferred from the S
|`logging.pattern.console` |`logging.pattern.console`
|`CONSOLE_LOG_PATTERN` |`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.) setup.)
|`logging.pattern.dateformat`
|`LOG_DATEFORMAT_PATTERN`
|Appender pattern for log date format. (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` is enabled). (Only supported with the |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` |`logging.pattern.level`
|`LOG_LEVEL_PATTERN` |`LOG_LEVEL_PATTERN`
|The format to use when rendering the log level (default `%5p`). (Only supported with the |The format to use when rendering the log level (default `%5p`). (Only supported with the
default logback setup.) default Logback setup.)
|`PID` |`PID`
|`PID` |`PID`

@ -91,6 +91,12 @@
"description": "Log levels severity mapping. For instance, 'logging.level.org.springframework=DEBUG'", "description": "Log levels severity mapping. For instance, 'logging.level.org.springframework=DEBUG'",
"sourceType": "org.springframework.boot.context.logging.LoggingApplicationListener" "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", "name": "logging.pattern.console",
"type": "java.lang.String", "type": "java.lang.String",
@ -98,6 +104,13 @@
"sourceType": "org.springframework.boot.context.logging.LoggingApplicationListener", "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}" "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", "name": "logging.pattern.file",
"type": "java.lang.String", "type": "java.lang.String",
@ -112,19 +125,6 @@
"sourceType": "org.springframework.boot.context.logging.LoggingApplicationListener", "sourceType": "org.springframework.boot.context.logging.LoggingApplicationListener",
"defaultValue": "%5p" "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", "name": "logging.register-shutdown-hook",
"type": "java.lang.Boolean", "type": "java.lang.Boolean",

@ -1,4 +1,4 @@
<configuration> <configuration>
<property name="CONSOLE_LOG_PATTERN" value="foo" /> <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> </configuration>

Loading…
Cancel
Save