From e0842f8d03a521165e3a3bc7452f8c71d244733e Mon Sep 17 00:00:00 2001 From: DCjanus Date: Mon, 21 Oct 2024 14:29:55 +0800 Subject: [PATCH] feat(log): add Logger() method for Helper --- log/helper.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/log/helper.go b/log/helper.go index 19fd613bc89..7eb5b25de96 100644 --- a/log/helper.go +++ b/log/helper.go @@ -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...)