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
2ceadd70
Commit
2ceadd70
authored
Jan 19, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix documentation of logging.path and logging.file
See gh-4969
parent
43ed824f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+2
-2
LogFile.java
...c/main/java/org/springframework/boot/logging/LogFile.java
+5
-5
LoggingApplicationListener.java
...ingframework/boot/logging/LoggingApplicationListener.java
+5
-5
additional-spring-configuration-metadata.json
...es/META-INF/additional-spring-configuration-metadata.json
+2
-2
No files found.
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
2ceadd70
...
@@ -42,8 +42,8 @@ content into your application; rather pick only the properties that you need.
...
@@ -42,8 +42,8 @@ content into your application; rather pick only the properties that you need.
spring.main....= # see class for all properties
spring.main....= # see class for all properties
# LOGGING
# LOGGING
logging.path=/var/log
logging.path=/var/log
# directory where log files are written
logging.file=myapp.log
logging.file=myapp.log
# name of the log file
logging.config= # location of config file (default classpath:logback.xml for logback)
logging.config= # location of config file (default classpath:logback.xml for logback)
logging.level.*= # levels for loggers, e.g. "logging.level.org.springframework=DEBUG" (TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF)
logging.level.*= # levels for loggers, e.g. "logging.level.org.springframework=DEBUG" (TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF)
...
...
spring-boot/src/main/java/org/springframework/boot/logging/LogFile.java
View file @
2ceadd70
/*
/*
* 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");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -36,14 +36,14 @@ import org.springframework.util.StringUtils;
...
@@ -36,14 +36,14 @@ import org.springframework.util.StringUtils;
public
class
LogFile
{
public
class
LogFile
{
/**
/**
* The name of the Spring property that contains the name of the log
ging configuratio
n
* The name of the Spring property that contains the name of the log
file. Names ca
n
*
file
.
*
be an exact location or relative to the current directory
.
*/
*/
public
static
final
String
FILE_PROPERTY
=
"logging.file"
;
public
static
final
String
FILE_PROPERTY
=
"logging.file"
;
/**
/**
* The name of the Spring property that contains the
path where the logging
* The name of the Spring property that contains the
directory where log files are
*
configuration can be found
.
*
written
.
*/
*/
public
static
final
String
PATH_PROPERTY
=
"logging.path"
;
public
static
final
String
PATH_PROPERTY
=
"logging.path"
;
...
...
spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java
View file @
2ceadd70
/*
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -72,14 +72,14 @@ public class LoggingApplicationListener implements SmartApplicationListener {
...
@@ -72,14 +72,14 @@ public class LoggingApplicationListener implements SmartApplicationListener {
public
static
final
String
CONFIG_PROPERTY
=
"logging.config"
;
public
static
final
String
CONFIG_PROPERTY
=
"logging.config"
;
/**
/**
* The name of the Spring property that contains the
path where the logging
* The name of the Spring property that contains the
directory where log files are
*
configuration can be found
.
*
written
.
*/
*/
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
ging configuratio
n
* The name of the Spring property that contains the name of the log
file. Names ca
n
*
file
.
*
be an exact location or relative to the current directory
.
*/
*/
public
static
final
String
FILE_PROPERTY
=
LogFile
.
FILE_PROPERTY
;
public
static
final
String
FILE_PROPERTY
=
LogFile
.
FILE_PROPERTY
;
...
...
spring-boot/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
2ceadd70
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
{
{
"name"
:
"logging.file"
,
"name"
:
"logging.file"
,
"type"
:
"java.lang.String"
,
"type"
:
"java.lang.String"
,
"description"
:
"
Log file name
."
,
"description"
:
"
Name of the log file. Names can be an exact location or relative to the current directory
."
,
"sourceType"
:
"org.springframework.boot.logging.LoggingApplicationListener"
"sourceType"
:
"org.springframework.boot.logging.LoggingApplicationListener"
},
},
{
{
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
{
{
"name"
:
"logging.path"
,
"name"
:
"logging.path"
,
"type"
:
"java.lang.String"
,
"type"
:
"java.lang.String"
,
"description"
:
"
Location of the log file
."
,
"description"
:
"
Directory where log files are written
."
,
"sourceType"
:
"org.springframework.boot.logging.LoggingApplicationListener"
"sourceType"
:
"org.springframework.boot.logging.LoggingApplicationListener"
},
},
{
{
...
...
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