LogFile

open class LogFile

A reference to a log output file. Log output files are specified using logging.file.name or logging.file.pathEnvironment properties. If the logging.file.name property is not specified "spring.log" will be written in the logging.file.path directory.

Author

Phillip Webb

Christian Carriere-Tisseur

Since

1.2.1

See also

Properties

Link copied to clipboard
val FILE_NAME_PROPERTY: String = "logging.file.name"
The name of the Spring property that contains the name of the log file.
Link copied to clipboard
val FILE_PATH_PROPERTY: String = "logging.file.path"
The name of the Spring property that contains the directory where log files are written.

Functions

Link copied to clipboard
open fun applyTo(properties: Properties)
Apply log file details to LOG_PATH and LOG_FILE map entries.
Link copied to clipboard
Apply log file details to LOG_PATH and LOG_FILE system properties.
Link copied to clipboard
open fun get(propertyResolver: PropertyResolver): LogFile
Get a LogFile from the given Spring Environment.
Link copied to clipboard
open fun toString(): String