Skip to content

Commit

Permalink
forgot to add it to Handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nebula-aac committed Aug 2, 2023
1 parent 8f48f80 commit 6b44b96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const (
)

type Handler interface {
SetLogLevel(level LogLevel)
GetLogLevel() LogLevel
SetLogFormatter(formatter TerminalFormatter)

Info(description ...interface{})
Expand Down Expand Up @@ -94,6 +96,10 @@ func (l *Logger) SetLogFormatter(formatter TerminalFormatter) {
l.logFormatter = formatter
}

func (l *Logger) GetLogLevel() LogLevel {
return l.logLevel
}

func (l *Logger) SetLogLevel(level LogLevel) {
l.logLevel = level
}
Expand Down

0 comments on commit 6b44b96

Please sign in to comment.