Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 626 Bytes

File metadata and controls

24 lines (18 loc) · 626 Bytes

logw

Logw is a build-time log wrapper over glog and AppEngine logging. It is not a logging framework intended to be extensible and flexible, but rather to allow Go libraries to log easily in multiple environments for a few fixed choices of logging mechanisms.

Usage

Simply call any logging or assert function:

logw.Printf(ctx, "Message")
logw.Warningf(ctx, "Message: %v", 3)

logw.Assert(ctx, p > 5, "Value too small")

Note that for AppEngine, the request context should be used:

ctx := appengine.NewContext(r)

License

Logw is released under the MIT License.