Package io.quarkus.runtime.logging
Interface LogRuntimeConfig.FileConfig
- Enclosing interface:
- LogRuntimeConfig
public static interface LogRuntimeConfig.FileConfig
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Default file name where logs should be stored. -
Method Summary
Modifier and TypeMethodDescriptionasync()
File async logging configboolean
enable()
If file logging should be enabledOptional<@WithConverter(CharsetConverter.class) Charset>
encoding()
The character encoding usedfilter()
The name of the filter to link to the file handler.format()
The log format@WithConverter(LevelConverter.class) Level
level()
The level of logs to be written into the file.path()
The name of the file in which logs will be written.rotation()
File rotation config.
-
Field Details
-
DEFAULT_LOG_FILE_NAME
Default file name where logs should be stored.- See Also:
-
-
Method Details
-
enable
@WithDefault("false") boolean enable()If file logging should be enabled -
format
The log format -
level
@WithDefault("ALL") @WithConverter(LevelConverter.class) @WithConverter(LevelConverter.class) Level level()The level of logs to be written into the file. -
path
The name of the file in which logs will be written. -
filter
The name of the filter to link to the file handler. -
encoding
Optional<@WithConverter(CharsetConverter.class) Charset> encoding()The character encoding used -
async
LogRuntimeConfig.AsyncConfig async()File async logging config -
rotation
LogRuntimeConfig.FileConfig.RotationConfig rotation()File rotation config. The time interval is determined by the content of thefileSuffix
property. The size interval is determined by the content of themaxFileSize
property. If both are used, the rotating will be based on time, then on size.
-