OptionalsizeThe 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.
OptionalfrequencyThe 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.
OptionaltimestampFor 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-DDOptionalpathThe 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
OptionallevelSpecify the minimum log level to output to rotating files. If false no log files will be created.
Specify and override default log file options