Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
a6c301ed
Commit
a6c301ed
authored
Jan 01, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11451 from izeye:logging-pattern-dateformat
* pr/11451: Polish
parents
0b024159
a4622553
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
21 deletions
+25
-21
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+2
-2
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+9
-5
additional-spring-configuration-metadata.json
...es/META-INF/additional-spring-configuration-metadata.json
+13
-13
custom-console-log-pattern.xml
...ng-boot/src/test/resources/custom-console-log-pattern.xml
+1
-1
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
a6c301ed
...
@@ -35,9 +35,9 @@ content into your application. Rather, pick only the properties that you need.
...
@@ -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 l
ogback setup.
logging.pattern.dateformat=
yyyy-MM-dd HH:mm:ss.SSS # Appender pattern for log date format. Supported only with the default L
ogback 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.
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
a6c301ed
...
@@ -1616,13 +1616,13 @@ To help with the customization, some other properties are transferred from the S
...
@@ -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
l
ogback
|Maximum log file size (if LOG_FILE enabled). (Only supported with the default
L
ogback
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
l
ogback setup.)
the default
L
ogback 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
...
@@ -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
l
ogback
|The log pattern to use on the console (stdout). (Only supported with the default
L
ogback
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
l
ogback setup.)
default
L
ogback 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
l
ogback setup.)
default
L
ogback setup.)
|`PID`
|`PID`
|`PID`
|`PID`
...
...
spring-boot-project/spring-boot/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
a6c301ed
...
@@ -91,6 +91,12 @@
...
@@ -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 @@
...
@@ -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 @@
...
@@ -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"
,
...
...
spring-boot-project/spring-boot/src/test/resources/custom-console-log-pattern.xml
View file @
a6c301ed
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment