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
4ed26825
Commit
4ed26825
authored
Dec 01, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x'
parents
ba15e72d
b4e7a968
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
LogFile.java
...c/main/java/org/springframework/boot/logging/LogFile.java
+2
-2
LoggingApplicationListener.java
...ingframework/boot/logging/LoggingApplicationListener.java
+7
-5
LoggingSystemProperties.java
...springframework/boot/logging/LoggingSystemProperties.java
+5
-5
No files found.
spring-boot/src/main/java/org/springframework/boot/logging/LogFile.java
View file @
4ed26825
...
@@ -83,8 +83,8 @@ public class LogFile {
...
@@ -83,8 +83,8 @@ public class LogFile {
* @param properties the properties to apply to
* @param properties the properties to apply to
*/
*/
public
void
applyTo
(
Properties
properties
)
{
public
void
applyTo
(
Properties
properties
)
{
put
(
properties
,
"LOG_PATH"
,
this
.
path
);
put
(
properties
,
LoggingApplicationListener
.
LOG_PATH
,
this
.
path
);
put
(
properties
,
"LOG_FILE"
,
toString
());
put
(
properties
,
LoggingApplicationListener
.
LOG_FILE
,
toString
());
}
}
private
void
put
(
Properties
properties
,
String
key
,
String
value
)
{
private
void
put
(
Properties
properties
,
String
key
,
String
value
)
{
...
...
spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java
View file @
4ed26825
...
@@ -98,23 +98,25 @@ public class LoggingApplicationListener implements GenericApplicationListener {
...
@@ -98,23 +98,25 @@ public class LoggingApplicationListener implements GenericApplicationListener {
* The name of the Spring property that contains the directory where log files are
* The name of the Spring property that contains the directory where log files are
* written.
* written.
*/
*/
@Deprecated
public
static
final
String
PATH_PROPERTY
=
LogFile
.
PATH_PROPERTY
;
public
static
final
String
PATH_PROPERTY
=
LogFile
.
PATH_PROPERTY
;
/**
/**
* The name of the Spring property that contains the name of the log file. Names can
* The name of the Spring property that contains the name of the log file. Names can
* be an exact location or relative to the current directory.
* be an exact location or relative to the current directory.
*/
*/
@Deprecated
public
static
final
String
FILE_PROPERTY
=
LogFile
.
FILE_PROPERTY
;
public
static
final
String
FILE_PROPERTY
=
LogFile
.
FILE_PROPERTY
;
/**
/**
* The name of the System property that contains the process ID.
* The name of the System property that contains the process ID.
*/
*/
public
static
final
String
PID_KEY
=
LoggingSystemProperties
.
PID_KEY
;
public
static
final
String
PID_KEY
=
"PID"
;
/**
/**
* The name of the System property that contains the exception conversion word.
* The name of the System property that contains the exception conversion word.
*/
*/
public
static
final
String
EXCEPTION_CONVERSION_WORD
=
LoggingSystemProperties
.
EXCEPTION_CONVERSION_WORD
;
public
static
final
String
EXCEPTION_CONVERSION_WORD
=
"LOG_EXCEPTION_CONVERSION_WORD"
;
/**
/**
* The name of the System property that contains the log file.
* The name of the System property that contains the log file.
...
@@ -129,17 +131,17 @@ public class LoggingApplicationListener implements GenericApplicationListener {
...
@@ -129,17 +131,17 @@ public class LoggingApplicationListener implements GenericApplicationListener {
/**
/**
* 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
=
LoggingSystemProperties
.
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
=
LoggingSystemProperties
.
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
=
LoggingSystemProperties
.
LOG_LEVEL_PATTERN
;
public
static
final
String
LOG_LEVEL_PATTERN
=
"LOG_LEVEL_PATTERN"
;
/**
/**
* The name of the {@link LoggingSystem} bean.
* The name of the {@link LoggingSystem} bean.
...
...
spring-boot/src/main/java/org/springframework/boot/logging/LoggingSystemProperties.java
View file @
4ed26825
...
@@ -28,15 +28,15 @@ import org.springframework.core.env.Environment;
...
@@ -28,15 +28,15 @@ import org.springframework.core.env.Environment;
*/
*/
class
LoggingSystemProperties
{
class
LoggingSystemProperties
{
static
final
String
PID_KEY
=
"PID"
;
static
final
String
PID_KEY
=
LoggingApplicationListener
.
PID_KEY
;
static
final
String
EXCEPTION_CONVERSION_WORD
=
"LOG_EXCEPTION_CONVERSION_WORD"
;
static
final
String
EXCEPTION_CONVERSION_WORD
=
LoggingApplicationListener
.
EXCEPTION_CONVERSION_WORD
;
static
final
String
CONSOLE_LOG_PATTERN
=
"CONSOLE_LOG_PATTERN"
;
static
final
String
CONSOLE_LOG_PATTERN
=
LoggingApplicationListener
.
CONSOLE_LOG_PATTERN
;
static
final
String
FILE_LOG_PATTERN
=
"FILE_LOG_PATTERN"
;
static
final
String
FILE_LOG_PATTERN
=
LoggingApplicationListener
.
FILE_LOG_PATTERN
;
static
final
String
LOG_LEVEL_PATTERN
=
"LOG_LEVEL_PATTERN"
;
static
final
String
LOG_LEVEL_PATTERN
=
LoggingApplicationListener
.
LOG_LEVEL_PATTERN
;
private
final
Environment
environment
;
private
final
Environment
environment
;
...
...
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