Skip to content

Commit

Permalink
add: method get zap object
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad authored Feb 28, 2023
1 parent d976477 commit 2e3a0d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ func (z *Zap) GetServiceName() string {
return z.service.Name
}

func (z *Zap) GetZap() *zap.Logger {
return z.zap
}

func (z *Zap) callersLoader() {
z.debug = (*zap.SugaredLogger).Debug
z.debugF = (*zap.SugaredLogger).Debugf
Expand Down

0 comments on commit 2e3a0d9

Please sign in to comment.