{"id":29747498,"url":"https://github.com/jkaninda/logger","last_synced_at":"2025-08-30T22:05:57.745Z","repository":{"id":296514628,"uuid":"993567134","full_name":"jkaninda/logger","owner":"jkaninda","description":"Logger is a configurable logging solution with multiple output options, log levels, and rotation capabilities built on top of Go's slog package.","archived":false,"fork":false,"pushed_at":"2025-06-13T20:17:30.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-26T12:48:39.245Z","etag":null,"topics":["go-logger","go-logging","slog","slogger"],"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/jkaninda.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,"zenodo":null}},"created_at":"2025-05-31T03:20:17.000Z","updated_at":"2025-06-13T20:16:22.000Z","dependencies_parsed_at":"2025-05-31T19:39:34.798Z","dependency_job_id":"17b71d5a-db97-4e4c-b0f3-84c5f5b83953","html_url":"https://github.com/jkaninda/logger","commit_stats":null,"previous_names":["jkaninda/logger"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jkaninda/logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkaninda%2Flogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkaninda%2Flogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkaninda%2Flogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkaninda%2Flogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkaninda","download_url":"https://codeload.github.com/jkaninda/logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkaninda%2Flogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272912489,"owners_count":25014077,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["go-logger","go-logging","slog","slogger"],"created_at":"2025-07-26T08:40:08.378Z","updated_at":"2025-08-30T22:05:57.697Z","avatar_url":"https://github.com/jkaninda.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LOGGER\n\n[![Tests](https://github.com/jkaninda/logger/actions/workflows/tests.yml/badge.svg)](https://github.com/jkaninda/logger/actions/workflows/tests.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jkaninda/logger)](https://goreportcard.com/report/github.com/jkaninda/logger)\n[![Go](https://img.shields.io/github/go-mod/go-version/jkaninda/logger)](https://go.dev/)\n[![Go Reference](https://pkg.go.dev/badge/github.com/jkaninda/logger.svg)](https://pkg.go.dev/github.com/jkaninda/logger)\n[![GitHub Release](https://img.shields.io/github/v/release/jkaninda/logger)](https://github.com/jkaninda/logger/releases)\n\n**Logger** provides a configurable logging solution with multiple output options, log levels, and rotation capabilities built on top of Go's slog package.\n\n## Installation\n\n```bash\ngo get github.com/jkaninda/logger\n```\n## Usage Example\n\n```go\nl := logger.New(\nWithOutputFile(\"/var/log/app.log\"),\nWithCaller(),\nWithInfoLevel(),\nWithMaxAge(1),\nWithMaxSize(100),\nWithJSONFormat(),\n)\nl.Info(\"Application started\", \"version\", \"1.0.0\")\n```\n## Default config\n\n```go\n\tl := logger.Default()\n\tl.Info(\"Application started\", \"version\", \"1.0.0\", \"config\", \"default\")\n```\n\n## Using global logger instance\n\n```go\n\tlogger.New(logger.WithJSONFormat())\n\n\tlogger.Info(\"Application started\", \"version\", \"1.0.0\")\n```\n---\n\n## Contributing\n\nContributions are welcome!\n\n1. Fork the repository\n2. Create a feature branch\n3. Commit your changes\n4. Push to your fork\n5. Open a Pull Request\n\n\n\n---\n## Give a Star! ⭐\n\n⭐ If you find Okapi useful, please consider giving it a star on [GitHub](https://github.com/jkaninda/logger)!\n\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n## Copyright\n\nCopyright (c) 2025 Jonas Kaninda\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkaninda%2Flogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkaninda%2Flogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkaninda%2Flogger/lists"}