Example #1
0
// Trace can be used to simplify logging of start and completion events,
// for example an upload which may fail.
func Example_trace() (err error) {
	defer log.Trace("upload").Stop(&err)
	return nil
}
Example #2
0
// Trace returns a new entry with a Stop method to fire off
// a corresponding completion log, useful with defer.
func Trace(msg string) *apexlog.Entry {
	return apexlog.Trace(msg)
}