resty-zerolog
A simple wrapper for zerolog to use it as an implementation of Logger interface from Resty
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.2%) to scientific vocabulary
Keywords
Repository
A simple wrapper for zerolog to use it as an implementation of Logger interface from Resty
Basic Info
Statistics
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
- Releases: 2
Topics
Metadata Files
README.md
resty-zerolog
resty-zerolog is a simple wrapper for zerolog to use it as an implementation of Logger interface from Resty
Why?
I wanted to use zerolog as a logger for Resty, but Resty does not support zerolog out of the box. So I created this simple wrapper.
Yes, Logger interface from Resty is very simple, and you can implement it in a few lines of code, but I wanted to have a ready-to-use solution to not repeat myself in every project I use resty and zerolog.
Installation
bash
go get -u github.com/weastur/resty-zerolog
Usage
```go import ( "github.com/rs/zerolog/log" restyzerolog "github.com/weastur/resty-zerolog" "resty.dev/v3" )
client := resty.New() client.SetLogger(restyzerolog.New(log.Logger)) ```
Despite it's extremely simple, you can refer to the example and godoc to see a bit more.
Contributing
Contributions are welcome! Please read the CONTRIBUTING.md file for details on how to contribute to this project.
Security
Refer to the SECURITY.md file for more information.
License
Mozilla Public License 2.0
Refer to the LICENSE file for more information.
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: "Asset Manager"
version: "v1.0.0"
type: software
authors:
- family-names: "Sapezhka"
given-names: "Pavel"
doi: 10.5281/zenodo.1234
date-released: 2025-03-23
url: "https://github.com/weastur/resty-zerolog"
repository-code: "https://github.com/weastur/resty-zerolog"
abstract: >-
A simple wrapper for zerolog to use it as an implementation of Logger for Resty.
keywords:
- go
- zerolog
- resty
- logging
license: MPL-2.0
GitHub Events
Total
- Issue comment event: 1
- Pull request event: 1
- Create event: 1
Last Year
- Issue comment event: 1
- Pull request event: 1
- Create event: 1
Dependencies
- actions/cache v4 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- actions/checkout v4 composite
- actions/setup-go v5 composite
- golangci/golangci-lint-action v6 composite
- actions/checkout v4 composite
- actions/setup-go v5 composite
- codecov/codecov-action v5 composite