Skip to content

Commit

Permalink
remove interface Printf func and struct bind interface
Browse files Browse the repository at this point in the history
  • Loading branch information
miajio committed Dec 23, 2022
1 parent 393d7ea commit 5b84b8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ type Logger struct {

// LoggerInterface
type LoggerInterface interface {
Generate(LogMap) // Generate logger core
Printf(...string) // Printf
Generate(LogMap) // Generate logger core
}

// default log level
Expand All @@ -50,6 +49,8 @@ var (
ErrorLevel = func(level zapcore.Level) bool {
return level == zap.ErrorLevel
}

_ LoggerInterface = (*Logger)(nil)
)

// Generate
Expand Down

0 comments on commit 5b84b8d

Please sign in to comment.