diff options
| author | Raul Benencia <46945030+raul-te@users.noreply.github.com> | 2023-01-04 16:16:10 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-04 16:16:10 -0800 |
| commit | 5278665a4dab4d90c7aac56aa76ce2c24705da8c (patch) | |
| tree | 070fa7e79bb7d031797ed3c60d6f6745ee4b8689 /vendor/github.com/go-kit/kit/log/README.md | |
| parent | 1c79728984af1b0b065ce5879581f41fa9f03da3 (diff) | |
build: update dependencies
Diffstat (limited to 'vendor/github.com/go-kit/kit/log/README.md')
| -rw-r--r-- | vendor/github.com/go-kit/kit/log/README.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/go-kit/kit/log/README.md b/vendor/github.com/go-kit/kit/log/README.md index 7222f80..5492dd9 100644 --- a/vendor/github.com/go-kit/kit/log/README.md +++ b/vendor/github.com/go-kit/kit/log/README.md @@ -1,5 +1,14 @@ # package log +**Deprecation notice:** The core Go kit log packages (log, log/level, log/term, and +log/syslog) have been moved to their own repository at github.com/go-kit/log. +The corresponding packages in this directory remain for backwards compatibility. +Their types alias the types and their functions call the functions provided by +the new repository. Using either import path should be equivalent. Prefer the +new import path when practical. + +______ + `package log` provides a minimal interface for structured logging in services. It may be wrapped to encode conventions, enforce type-safety, provide leveled logging, and so on. It can be used for both typical application log events, @@ -103,6 +112,10 @@ logger.Log("msg", "hello") // ts=2016-01-01T12:34:56Z caller=main.go:15 msg=hello ``` +## Levels + +Log levels are supported via the [level package](https://godoc.org/github.com/go-kit/kit/log/level). + ## Supported output formats - [Logfmt](https://brandur.org/logfmt) ([see also](https://blog.codeship.com/logfmt-a-log-format-thats-easy-to-read-and-write)) |
