https://github.com/ysk229/go-logs
go logs
https://github.com/ysk229/go-logs
go logger logging logs loguru std zap
Last synced: 12 days ago
JSON representation
go logs
- Host: GitHub
- URL: https://github.com/ysk229/go-logs
- Owner: ysk229
- License: mit
- Created: 2022-10-15T03:11:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-02T04:19:25.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T00:44:28.608Z (over 1 year ago)
- Topics: go, logger, logging, logs, loguru, std, zap
- Language: Go
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-logs
[](https://github.com/ysk229/go-logs/actions)
[](https://github.com/ysk229/go-logs/blob/master/LICENSE)
[](https://pkg.go.dev/github.com/ysk229/go-logs)
[](https://goreportcard.com/report/github.com/ysk229/go-logs)
[](https://godoc.org/github.com/ysk229/go-logs)
[](https://github.com/ysk229/go-logs)
[](https://github.com/ysk229/go-logs/releases/latest)
[](https://github.com/ysk229/go-logs/tags)
[](https://github.com/ysk229/go-logs/stargazers)
## βοΈ Installation
Download rabbitmq package by using:
```bash
go get github.com/ysk229/go-logs
```
## π Quick Start
### Default options
```go
l := log.DefaultLogger
l.Info("info") // δΈζε°
l.Warnw("key", "value")
l.Errorf("%v", "sdfdsfds")
l.SetLevel("info")
lg.Println("test")
l.Info("show info log")
l.SetLevel("warn")
l.Warnw("key", "value")
```
## Other usage examples
See the [examples](_examples) directory for more ideas.
## Transient Dependencies
- [go.uber.org/zap](https://github.com/uber-go/zap)
- [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus)
## π Contributing
I love help! Contribute by forking the repo and opening pull requests. Please ensure that your code passes the existing tests and linting, and write tests to test your changes if applicable.
All pull requests should be submitted to the `main` branch.