summaryrefslogtreecommitdiff
path: root/modules/logging
diff options
context:
space:
mode:
Diffstat (limited to 'modules/logging')
-rw-r--r--modules/logging/filewriter.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/logging/filewriter.go b/modules/logging/filewriter.go
index 7333fb2..c0b5715 100644
--- a/modules/logging/filewriter.go
+++ b/modules/logging/filewriter.go
@@ -135,6 +135,7 @@ func (fw FileWriter) OpenWriter() (io.WriteCloser, error) {
// roll_disabled
// roll_size <size>
// roll_uncompressed
+// roll_local_time
// roll_keep <num>
// roll_keep_for <days>
// }
@@ -188,6 +189,12 @@ func (fw *FileWriter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
return d.ArgErr()
}
+ case "roll_local_time":
+ fw.RollLocalTime = true
+ if d.NextArg() {
+ return d.ArgErr()
+ }
+
case "roll_keep":
var keepStr string
if !d.AllArgs(&keepStr) {