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
import (
"github.com/entur/go-logging"
)
func main(){
logger := logging.New()
logger.Warn().Msg("Starting app")
}
See ./logging_test.go
for a complete test.