{"id":21657245,"url":"https://github.com/zcubbs/log","last_synced_at":"2026-05-22T05:01:33.497Z","repository":{"id":200177130,"uuid":"705284797","full_name":"zcubbs/log","owner":"zcubbs","description":"A versatile Go logging wrapper that allows seamless integration and toggling between various logging libraries such as Logrus, Zap, Charmlog and the standard log package.","archived":false,"fork":false,"pushed_at":"2024-01-14T20:41:29.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T11:48:29.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zcubbs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-15T15:34:44.000Z","updated_at":"2023-12-28T19:41:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"aac03d8d-e379-4485-bdea-b1324f3779bd","html_url":"https://github.com/zcubbs/log","commit_stats":null,"previous_names":["zcubbs/logwrapper"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcubbs%2Flog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcubbs%2Flog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcubbs%2Flog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcubbs%2Flog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zcubbs","download_url":"https://codeload.github.com/zcubbs/log/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554120,"owners_count":20471173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T09:20:10.688Z","updated_at":"2026-05-22T05:01:31.389Z","avatar_url":"https://github.com/zcubbs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Log\n\nA versatile Go logging wrapper that allows seamless integration and toggling between various logging libraries such as Logrus, Zap, Charmlog and the standard log package. It also supports different logging formats like JSON and text, making it a flexible choice for various application needs.\n\n[![tag](https://img.shields.io/github/tag/zcubbs/logwrapper)](https://github.com/zcubbs/logwrapper/releases)\n![Go Version](https://img.shields.io/badge/Go-%3E%3D%201.21-%23007d9c)\n[![GoDoc](https://godoc.org/github.com/zcubbs/logwrapper?status.svg)](https://pkg.go.dev/github.com/zcubbs/logwrapper)\n[![Lint](https://github.com/zcubbs/logwrapper/actions/workflows/lint.yaml/badge.svg)](https://github.com/zcubbs/logwrapper/actions/workflows/lint.yaml)\n[![Scan](https://github.com/zcubbs/logwrapper/actions/workflows/scan.yaml/badge.svg?branch=main)](https://github.com/zcubbs/logwrapper/actions/workflows/scan.yaml)\n![Build Status](https://github.com/zcubbs/logwrapper/actions/workflows/test.yaml/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/zcubbs/logwrapper)](https://goreportcard.com/report/github.com/zcubbs/logwrapper)\n[![Contributors](https://img.shields.io/github/contributors/zcubbs/logwrapper)](https://github.com/zcubbs/logwrapper/graphs/contributors)\n[![License](https://img.shields.io/github/license/zcubbs/logwrapper.svg)](./LICENSE)\n\n## Installation\n\nTo install the LogWrapper package, run the following command:\n\n```bash\ngo get github.com/zcubbs/log\n```\n\n## Usage\n\nHere is a simple example demonstrating the usage of LogWrapper with different logging types and formats:\n\n```go\npackage main\n\nimport (\n    \"github.com/zcubbs/log\"\n    \"github.com/zcubbs/log/structuredlogger\"\n)\n\nfunc main() {\n    log.Info(\"This is an info message in JSON format\")\n\n    log.SetFormat(structuredlogger.TextFormat)\n    log.Info(\"This is an info message in text format\")\n}\n```\n\nFor a more comprehensive example, please refer to [`example.go`](./examples/example.go) in this repository.\n\n## Supported Loggers\n\n- [Logrus](https://github.com/sirupsen/logrus)\n- [Zap](https://github.com/uber-go/zap)\n- [Charmlog](https://github.com/charmbracelet/log)\n- Standard log package\n\n## Supported Formats\n\n- JSON\n- Text (Human-Readable)\n\n## Contributing\n\nWe welcome contributions from the community! Feel free to open issues for bug reports or feature requests, and submit pull requests for improvements to the codebase.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcubbs%2Flog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzcubbs%2Flog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcubbs%2Flog/lists"}