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 StringDefault file name where logs should be stored. -
Method Summary
Modifier and TypeMethodDescriptionasync()File async logging configenable()Deprecated, for removal: This API element is subject to removal in a future version.booleanenabled()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) Levellevel()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
-
enabled
@WithDefault("false") boolean enabled()If file logging should be enabled -
enable
Deprecated, for removal: This API element is subject to removal in a future version.usequarkus.log.file.enabledinsteadIf 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 thefileSuffixproperty. The size interval is determined by the content of themaxFileSizeproperty. If both are used, the rotating will be based on time, then on size.
-
quarkus.log.file.enabledinstead