Configure Appender Attributes
Each logger has one or more appenders. Each appender specifies where, and in what format, the data is logged. For each appender, you can configure these attributes:
Attribute | Description | Type | Default Value |
---|---|---|---|
fileName
|
The name of the log file. | String | - |
name
|
The name of the appender. | String | - |
directory
|
The directory that the log file is saved to. | String | "" |
immediateFlush
|
Whether or not to immediately flush log data. Options: true , false |
String | true |
bufferSize
|
The size, in MB, of the event buffer. The buffer temporarily stores messages before they are written to disk. | String | 256 KB |