github.com/efixler/logger (go): Package logger provides a single logging facility/interface that can be used with Appengine-contained code (e.g. GCP Standard Enviromnment for Go) or inside 'normal' Go runtime environments (GCP Flexible and most others).  This package was written specifically to enable same-logging-package usage in both types of environments, and to facilitate porting code from the Standard Environment to the Flexible Environment.  Appengine logging differs in two key ways from plain-jane go log:  1) It uses level-tied methods for its logging, e.g.:  2) Appengine logging always requires a context as the first argument. The GCP logging infrastructure uses the context to tie a log line to a particular request, and also does not accepts any logs that are not tied to a particular request via a context. (You can see comtext-less logs in development, but not in GCP infrastructure)  This logger uses the appengine-style interface, but let's you use it with appengine-hosted code or not. It uses the 'appengine' build tag to conditionally build the right logger for the environment.
Keywords: appengine-go|golang-package|logging