Skip to content

Commit

Permalink
feat(log): add Logger() method for Helper
Browse files Browse the repository at this point in the history
  • Loading branch information
DCjanus committed Oct 28, 2024
1 parent 8508772 commit e0842f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions log/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ func (h *Helper) Enabled(level Level) bool {
return true
}

// Logger returns logger in the helper.
func (h *Helper) Logger() Logger {
return h.logger
}

// Log Print log by level and keyvals.
func (h *Helper) Log(level Level, keyvals ...interface{}) {
_ = h.logger.Log(level, keyvals...)
Expand Down

0 comments on commit e0842f8

Please sign in to comment.