Skip to content

Commit

Permalink
Merge pull request #111 from ohkinozomu/DefaultOptions
Browse files Browse the repository at this point in the history
Set Enable:true in DefaultOptions
  • Loading branch information
wind-c authored Aug 4, 2024
2 parents 136df72 + d61d6d8 commit fcc1415
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 fcc1415

Please sign in to comment.