diff --git a/zerolog.go b/zerolog.go index 11c1c49..8dd87b8 100644 --- a/zerolog.go +++ b/zerolog.go @@ -73,7 +73,7 @@ func (l *zeroLogger) Init(opts ...logger.Option) error { // RESET zerolog.TimeFieldFormat = time.RFC3339 zerolog.ErrorStackMarshaler = nil - zerolog.CallerSkipFrameCount = 4 + zerolog.CallerSkipFrameCount = l.opts.Options.CallerSkipCount switch l.opts.Mode { case Development: