diff --git a/pkg/unilogger/logger.go b/pkg/unilogger/logger.go index 67ca5d38..361b22c2 100644 --- a/pkg/unilogger/logger.go +++ b/pkg/unilogger/logger.go @@ -33,9 +33,8 @@ type Logger struct { type Options struct { handlerOptions - AddSource bool - Level slog.Level - Output io.Writer + Level slog.Level + Output io.Writer TimeFunc func(t time.Time) time.Time } diff --git a/pkg/unilogger/logger_test.go b/pkg/unilogger/logger_test.go index 2a0ad070..e2012829 100644 --- a/pkg/unilogger/logger_test.go +++ b/pkg/unilogger/logger_test.go @@ -356,9 +356,8 @@ stubArg: buf := bytes.NewBuffer([]byte{}) logger := unilogger.NewLogger(unilogger.Options{ - AddSource: tt.args.addSource, - Level: tt.args.level.Level(), - Output: buf, + Level: tt.args.level.Level(), + Output: buf, TimeFunc: func(_ time.Time) time.Time { t, err := time.Parse(time.DateTime, "2006-01-02 15:04:05") if err != nil {