func (e *logger) WithError(err error) Logger {
	type Contexter interface {
		Context() Map
	}

	context, ok := err.(Contexter)
	if !ok {
		stack := flaw.NewStackTraceAt(1)
		context = flaw.Wrap(err, stack...)
	}

	return e.WithFields(context.Context())
}
// WithError add a minimal stack trace to the log logger
WithError add a minimal stack trace to the log logger
// WithError add a minimal stack trace to the log logger
func (e *logger) WithError(err error) Logger {
	type Contexter interface {
		Context() Map
	}
	context, ok := err.(Contexter)
	if !ok {
		stack := flaw.NewStackTraceAt(1)
		context = flaw.Wrap(err, stack...)
	}
	return e.WithFields(context.Context())
}
func ( e * logger ) WithError ( err error ) Logger { type Contexter interface { Context ( ) Map } context , ok := err . ( Contexter ) if ! ok { stack := flaw . NewStackTraceAt ( 1 ) context = flaw . Wrap ( err , stack ... ) } return e . WithFields ( context . Context ( ) ) }
WithError add a minimal stack trace to the log logger
WithError add a minimal stack trace to the log logger