From cd54b770a509b471be243f280f973e01b33efaa3 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 20 Feb 2024 19:28:06 +0100 Subject: [PATCH] internal/log/config.go: adding FileTimestampFormat field --- internal/log/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/log/config.go b/internal/log/config.go index 60c5715..2c50cc0 100644 --- a/internal/log/config.go +++ b/internal/log/config.go @@ -15,6 +15,9 @@ type Config struct { // Directory where the log files are stored. Directory string `yaml:"directory" mapstructure:"directory"` + // Timestamp format when rotation files. + FileTimestampFormat string `yaml:"file_timestamp_format" mapstructure:"file_timestamp_format"` + // Maximum filesize, the log is rotated when this size is exceeded. MaxFileSize types.Size `yaml:"maxfilesize" mapstructure:"maxfilesize"`