https://github.com/bartventer/log
Custom Golang logger with interfaces for the standard log and log/slog packages
https://github.com/bartventer/log
Last synced: about 2 months ago
JSON representation
Custom Golang logger with interfaces for the standard log and log/slog packages
- Host: GitHub
- URL: https://github.com/bartventer/log
- Owner: bartventer
- License: other
- Created: 2024-09-01T10:20:40.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-11-25T01:02:18.000Z (7 months ago)
- Last Synced: 2025-04-12T15:07:12.381Z (about 2 months ago)
- Language: Go
- Homepage: https://pkg.go.dev/github.com/bartventer/log
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# log
[](https://pkg.go.dev/github.com/bartventer/log)
[](https://goreportcard.com/report/github.com/bartventer/log)
[](https://github.com/bartventer/log/actions/workflows/default.yml)
[](https://codecov.io/gh/bartventer/log)`log` provides a structured logger with context support.

_Refer to [examples/app](examples/app/app.go) for the source code._
## Installation
```bash
go get -u github.com/bartventer/log
```## Usage
```go
package mainimport (
"github.com/bartventer/log"
)func main() {
logger := log.New(log.UseLevel(log.DebugLevel))
logger.Debug("Oh, hi!")
}
```## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Acknowledgments
This project is a refactored version of the fantastic [charmbracelet/log](https://github.com/charmbracelet/log), which is a part of [Charm](https://charm.sh/).