route/vendor/github.com/Xe/ln/action.go

12 lines
311 B
Go
Raw Normal View History

2017-10-01 12:50:05 +00:00
package ln
// Action is a convenience helper for logging the "action" being performed as
// part of a log line.
//
// It is a convenience wrapper for the following:
//
// ln.Log(ctx, fer, f, ln.Action("writing frozberry sales reports to database"))
func Action(act string) Fer {
return F{"action": act}
}