https://github.com/usrpro/clog15
Embed a log15 logger into a context
https://github.com/usrpro/clog15
go golang golang-package logging
Last synced: 12 months ago
JSON representation
Embed a log15 logger into a context
- Host: GitHub
- URL: https://github.com/usrpro/clog15
- Owner: usrpro
- License: bsd-3-clause
- Created: 2020-03-26T16:33:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-04T18:24:51.000Z (about 6 years ago)
- Last Synced: 2025-01-30T03:24:57.585Z (over 1 year ago)
- Topics: go, golang, golang-package, logging
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/usrpro/clog15)
[](https://codecov.io/gh/usrpro/clog15)
[](https://goreportcard.com/report/github.com/usrpro/clog15)
[](https://godoc.org/github.com/usrpro/clog15)
# Clog15
Package clog15 provides utilities to embed and extract a log15.Logger to a context.
This might be helpfull to preserve logger context while being restricted by funtction signatures.
For instance in http.HanderFunc, middleware or gRPC interceptors.
It allows you to define logging context and attach the configured logger to a context
passed down the executions chain.
## License
Copyright (c) 2020, Mohlmann Solutions SRL. All rights reserved.
Use of this source code is governed by a BSD 3 Clause License that can be found in the [LICENSE](LICENSE) file.