Skip to content
/ logw Public

Logw is a build-time log wrapper for Go over glog and App Engine.

License

Notifications You must be signed in to change notification settings

seekerror/logw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Logw is a build-time log wrapper for Go over glog and App Engine.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages