From d61d6d875c534b18156970c03d9de1032c33e787 Mon Sep 17 00:00:00 2001 From: ohkinozomu Date: Sun, 4 Aug 2024 23:48:00 +0900 Subject: [PATCH] Set Enable:true in DefaultOptions --- cluster/log/logger.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cluster/log/logger.go b/cluster/log/logger.go index 73a1fb0..06c2bc7 100644 --- a/cluster/log/logger.go +++ b/cluster/log/logger.go @@ -2,10 +2,11 @@ package log import ( "context" - "gopkg.in/natefinch/lumberjack.v2" "io" "log/slog" "os" + + "gopkg.in/natefinch/lumberjack.v2" ) // Constants for log formats @@ -70,6 +71,7 @@ type Options struct { // Options defines configuration options for the logger. func DefaultOptions() *Options { return &Options{ + Enable: true, MaxSize: 100, MaxAge: 30, MaxBackups: 1,