https://github.com/go-kita/log
Log module of project Go-KitA
https://github.com/go-kita/log
golang logging
Last synced: 6 months ago
JSON representation
Log module of project Go-KitA
- Host: GitHub
- URL: https://github.com/go-kita/log
- Owner: go-kita
- License: mit
- Created: 2021-06-11T02:46:25.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-21T15:36:42.000Z (about 5 years ago)
- Last Synced: 2024-06-30T12:59:58.600Z (about 2 years ago)
- Topics: golang, logging
- Language: Go
- Homepage:
- Size: 310 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://golang.org/)
[](https://github.com/go-kita/log/actions/workflows/log.ci.yaml)
[](https://pkg.go.dev/github.com/go-kita/log/v3)
[](https://goreportcard.com/report/github.com/go-kita/log)
Translations: [English](README.md) | [简体中文](README.zh_CN.md)
# Log
[comment]: <> (This is the logging module of the Go-KitA framework.)
[comment]: <> (> Project Go-KitA is inspired by the project [Kratos](https://github.com/go-kratos/kratos))
[comment]: <> (> and has a lot of reference to its implementation.)
This module provides a simple logging interface which is easy to use and implement.
It also provides a usable implementation based on the `log` package of the Go
SDK.
The following logging frameworks are adapted:
- [x] Uber [Zap](https://github.com/uber-go/zap) - adapt via [zap-log](https://github.com/go-kita/zap-log) .
- [x] [logrus](https://github.com/sirupsen/logrus) - adapt via [logrus-log](https://github.com/go-kita/logrus-log) .
## Features
- [x] Print message via the Print-like function family: `Print`,`Printf`,`Println`
- [x] Support key/value pairs metadata.
- [x] Support named loggers.
- [x] Support level logging.
- [x] Support dynamic runtime logging level control by logger names.
- [X] Support `context.Context` and extracting value from it.
[comment]: <> (## Usage)
## Authors
- dowenliu-xyz
## License
Log is licensed under the MIT.
See [LICENSE](LICENSE) for the full license text.