Skip to content
/ log Public

Go logging library for GCP App Engine, Cloud Run, Cloud Functions

License

Notifications You must be signed in to change notification settings

apsystole/log

Repository files navigation

log Build Status Go Reference

Go logging library for GCP App Engine, Cloud Run, Cloud Functions:

  • Encodes the severities so that coloring works in the Google web-based Logs Explorer.
  • Zero dependencies, it is a stdlib-only module. Nul, zilch, nada!
  • Safe for concurrent logging.
  • Backward compatible with older Go versions as far as 1.9.4.

Screenshot

Coloring on GCP

Examples

package main

import "github.com/apsystole/log"

func main() {
    log.Print("my message")
}

More details to be found in the documentation on pkg.go.dev.