Optional
sizeThe maximum size of a given rolling log file.
Can be combined with frequency. Use k, m and g to express values in KB, MB or GB.
Numerical values will be considered as MB.
Optional
frequencyThe amount of time a given rolling log file is used. Can be combined with size.
Use daily
or hourly
to rotate file every day (or every hour). Existing file within the current day (or hour) will be re-used.
Numerical values will be considered as a number of milliseconds. Using a numerical value will always create a new file upon startup.
Optional
timestampFor rolling log files
When
path
from LogOptions is a string) andfrequency
is definedThis determines the format of the datetime inserted into the log file name:
unix
- unix epoch timestamp in millisecondsiso
- Full ISO8601 datetime IE '2024-03-07T20:11:34Z'auto
daily
only inserts date IE YYYY-MM-DDOptional
pathThe path and filename to use for log files.
If using rolling files the filename will be appended with .N
(a number) BEFORE the extension based on rolling status.
May also be specified using env LOG_PATH or a function that returns a string.
If path is relative the absolute path will be derived from logBaseDir
(in LoggerAppExtras
) which defaults to CWD
Optional
levelSpecify the minimum log level to output to rotating files. If false
no log files will be created.
Specify and override default log file options