Skip to content

Commit

Permalink
Set Enable:true in DefaultOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ohkinozomu committed Aug 4, 2024
1 parent 136df72 commit d61d6d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cluster/log/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d61d6d8

Please sign in to comment.