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
2cee1162
Commit
2cee1162
authored
Feb 11, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.3.x'
parents
2be90eca
295dc65b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
LoggingApplicationListener.java
...ingframework/boot/logging/LoggingApplicationListener.java
+3
-3
AbstractLoggingSystemTests.java
...ingframework/boot/logging/AbstractLoggingSystemTests.java
+4
-2
LoggingApplicationListenerTests.java
...amework/boot/logging/LoggingApplicationListenerTests.java
+2
-2
No files found.
spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java
View file @
2cee1162
...
...
@@ -120,17 +120,17 @@ public class LoggingApplicationListener implements GenericApplicationListener {
public
static
final
String
LOG_PATH
=
"LOG_PATH"
;
/**
* The name of the System property that contains the console log pattern
* The name of the System property that contains the console log pattern
.
*/
public
static
final
String
CONSOLE_LOG_PATTERN
=
"CONSOLE_LOG_PATTERN"
;
/**
* The name of the System property that contains the file log pattern
* The name of the System property that contains the file log pattern
.
*/
public
static
final
String
FILE_LOG_PATTERN
=
"FILE_LOG_PATTERN"
;
/**
* The name of the System property that contains the log level pattern
* The name of the System property that contains the log level pattern
.
*/
public
static
final
String
LOG_LEVEL_PATTERN
=
"LOG_LEVEL_PATTERN"
;
...
...
spring-boot/src/test/java/org/springframework/boot/logging/AbstractLoggingSystemTests.java
View file @
2cee1162
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -62,7 +62,9 @@ public abstract class AbstractLoggingSystemTests {
}
protected
final
LogFile
getLogFile
(
String
file
,
String
path
)
{
return
new
LogFile
(
file
,
path
);
LogFile
logFile
=
new
LogFile
(
file
,
path
);
logFile
.
applyToSystemProperties
();
return
logFile
;
}
protected
final
String
tmpDir
()
{
...
...
spring-boot/src/test/java/org/springframework/boot/logging/LoggingApplicationListenerTests.java
View file @
2cee1162
...
...
@@ -415,7 +415,7 @@ public class LoggingApplicationListenerTests {
@Test
public
void
systemPropertiesAreSetForLoggingConfiguration
()
{
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"logging.exception-conversion-word=conversion"
,
"logging.file=
file
"
,
"logging.exception-conversion-word=conversion"
,
"logging.file=
target/log
"
,
"logging.path=path"
,
"logging.pattern.console=console"
,
"logging.pattern.file=file"
,
"logging.pattern.level=level"
);
this
.
initializer
.
initialize
(
this
.
context
.
getEnvironment
(),
...
...
@@ -424,7 +424,7 @@ public class LoggingApplicationListenerTests {
assertThat
(
System
.
getProperty
(
"FILE_LOG_PATTERN"
)).
isEqualTo
(
"file"
);
assertThat
(
System
.
getProperty
(
"LOG_EXCEPTION_CONVERSION_WORD"
))
.
isEqualTo
(
"conversion"
);
assertThat
(
System
.
getProperty
(
"LOG_FILE"
)).
isEqualTo
(
"
file
"
);
assertThat
(
System
.
getProperty
(
"LOG_FILE"
)).
isEqualTo
(
"
target/log
"
);
assertThat
(
System
.
getProperty
(
"LOG_LEVEL_PATTERN"
)).
isEqualTo
(
"level"
);
assertThat
(
System
.
getProperty
(
"LOG_PATH"
)).
isEqualTo
(
"path"
);
assertThat
(
System
.
getProperty
(
"PID"
)).
isNotNull
();
...
...
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