// Trace logs an entry to a function or code block and returns a functor
// that can be called to log the exit of the function or code block
Trace logs an entry to a function or code block and returns a functor
that can be called to log the exit of the function or code block
// Trace logs an entry to a function or code block and returns a functor // that can be called to log the exit of the function or code block
func (rl *ResourceLogger) Trace(
	name string,
	additionalValues ...interface{},
) acktypes.TraceExiter {
	rl.Enter(name, additionalValues...)
	f := func(err error, args ...interface{}) {
		rl.Exit(name, err, args...)
	}
	return f
}
func ( rl * ResourceLogger ) Trace ( name string , additionalValues ... interface { } , ) acktypes . TraceExiter { rl . Enter ( name , additionalValues ... ) f := func ( err error , args ... interface { } ) { rl . Exit ( name , err , args ... ) } return f }
Trace logs an entry to a function or code block and returns a functor
that can be called to log the exit of the function or code block
Trace logs an entry to a function or code block and returns a functor that can be called to log the exit of the function or code block