public class LogFile
extends java.lang.Object
logging.file.name or logging.file.path Environment properties.
 If the logging.file.name property is not specified "spring.log" will be
 written in the logging.file.path directory.get(PropertyResolver)| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | FILE_NAME_PROPERTYThe name of the Spring property that contains the name of the log file. | 
| static java.lang.String | FILE_PATH_PROPERTYThe name of the Spring property that contains the directory where log files are
 written. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | applyTo(java.util.Properties properties)Apply log file details to  LOG_PATHandLOG_FILEmap entries. | 
| void | applyToSystemProperties()Apply log file details to  LOG_PATHandLOG_FILEsystem properties. | 
| static LogFile | get(org.springframework.core.env.PropertyResolver propertyResolver)Get a  LogFilefrom the given SpringEnvironment. | 
| java.lang.String | toString() | 
public static final java.lang.String FILE_NAME_PROPERTY
public static final java.lang.String FILE_PATH_PROPERTY
public void applyToSystemProperties()
LOG_PATH and LOG_FILE system properties.public void applyTo(java.util.Properties properties)
LOG_PATH and LOG_FILE map entries.properties - the properties to apply topublic java.lang.String toString()
toString in class java.lang.Objectpublic static LogFile get(org.springframework.core.env.PropertyResolver propertyResolver)
LogFile from the given Spring Environment.propertyResolver - the PropertyResolver used to obtain the logging
 propertiesLogFile or null if the environment didn't contain any
 suitable properties