Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2yuri/logg
📫 Cloud logging library in golang
https://github.com/2yuri/logg
cloud-logging golang golang-library hacktoberfest logger logging
Last synced: 2 days ago
JSON representation
📫 Cloud logging library in golang
- Host: GitHub
- URL: https://github.com/2yuri/logg
- Owner: 2yuri
- License: mit
- Created: 2021-09-27T11:25:32.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-29T17:41:20.000Z (about 3 years ago)
- Last Synced: 2024-06-20T08:17:01.363Z (5 months ago)
- Topics: cloud-logging, golang, golang-library, hacktoberfest, logger, logging
- Language: Go
- Homepage:
- Size: 32.2 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🔥 logg
## Open Source Cloud logging library in Go.
## About the project
- Connect your golang microservices logs with this engine!
- Send your logs to kafka, rabbitMQ or REST! And then manage them!
- Feel free to implement more writers## Instalation
`go get -u github.com/hyperyuri/logg`
## Quick Start
```
//Setup logger
logger := logg.NewLogger().
WithWriter(writer.WithDebugMode()).
WithDefaultConfig(logg.NewDefaultConfig("team-x", "project-x"))
logger.SetLevels(levels.NewLevels(logger))//To use the log
logger.Error("This is an example of an error")
```- Check the examples folder to see more options
## 💪 How to contribute to the project?
- Do a fork of the project.
- Submitting issue (please, follow [template](https://github.com/hyperyuri/logg/tree/master/.github/ISSUE_TEMPLATE/ISSUE_FORM.md))
- Create a new branch with your changes: git checkout -b my-feature
- Save your changes and create a commit with a message: git commit -m "feature: My new feature"
- Send your changes and send a PR