Skip to content

entur/go-logging

Repository files navigation

go-logging

Start using the SDK

The default log level will be derived from the LOG_LEVEL or COMMON_ENV environment variables if defined, or set to warning if not. The former values take priority over the latter. Valid values are:

  • fatal
  • panic
  • error
  • warning
  • info
  • debug
  • trace

Minimal example

import (
  "github.com/entur/go-logging"
)

func main(){
  logger := logging.New()
  logger.Warn().Msg("Starting app")
}

See ./logging_test.go for a complete test.

About

A simple SDK for standardized GCP logging in golang

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages