{"id":22465458,"url":"https://github.com/dhyanio/gogger","last_synced_at":"2025-09-04T19:40:11.404Z","repository":{"id":264135251,"uuid":"892465121","full_name":"dhyanio/gogger","owner":"dhyanio","description":"Golang + Logger is a simple and efficient logging library for Go","archived":false,"fork":false,"pushed_at":"2024-11-24T08:06:43.000Z","size":13,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T19:11:26.476Z","etag":null,"topics":["golang","log","logger","logging"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhyanio.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":"2024-11-22T06:54:10.000Z","updated_at":"2024-11-24T08:06:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f97b365-089d-4682-be4a-654260d4ccf6","html_url":"https://github.com/dhyanio/gogger","commit_stats":null,"previous_names":["dhyanio/gogger"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyanio%2Fgogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyanio%2Fgogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyanio%2Fgogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhyanio%2Fgogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhyanio","download_url":"https://codeload.github.com/dhyanio/gogger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245866751,"owners_count":20685496,"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":["golang","log","logger","logging"],"created_at":"2024-12-06T10:08:11.248Z","updated_at":"2025-03-27T14:50:26.581Z","avatar_url":"https://github.com/dhyanio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gogger\n\nGolang + Logger is a simple and efficient logging library for Go (Golang) that provides easy-to-use logging functionalities.\n\n## Features\n\n- Simple API for logging at different levels (Info, Warning, Error, Debug)\n- Customizable log format\n- Support for logging to different outputs (console, file, etc.)\n- Lightweight and efficient\n\n## Installation\n\nTo install Gogger, use `go get`:\n\n```sh\ngo get github.com/dhyanio/gogger\n```\n\n## Usage\n\nHere's a basic example of how to use Gogger:\n\n```go\npackage main\n\nimport (\n    \"github.com/dhyanio/gogger\"\n)\n\nfunc main() {\n    log, err := gogger.NewLogger(\"logfile.log\", gogger.INFO)\n    if err != nil {\n        panic(err)\n    }\n\n    log.Info().Str(\"TaskType\", \"mytask\").Int(\"EventCount\", len(numberOfEvens)).Msg(\"This is an info message\")\n    log.Warning.Str(\"TaskType\", \"mytask\").Int(\"EventCount\", len(numberOfEvens)).Msg(\"This is an warning message\")\n    log.Error.Str(\"TaskType\", \"mytask\").Int(\"EventCount\", len(numberOfEvens)).Msg(\"This is an error message\")\n    log.Debug.Str(\"TaskType\", \"mytask\").Int(\"EventCount\", len(numberOfEvens)).Msg(\"This is an debug message\")\n}\n```\n\n## Configuration\n\nYou can customize the logger by setting different options in the configuration file:\n\n```go\nfunc main() {\n    config := gogger.Config{\n        Output: \"stdout\",\n        Format: \"json\",\n        Level:  gogger.INFO,\n    }\n\n    log, err := gogger.NewLoggerWithConfig(config)\n    if err != nil {\n        panic(err)\n    }\n}\n```\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request on GitHub.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgements\n\nThanks to the Go community for their support and contributions. ❤️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhyanio%2Fgogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhyanio%2Fgogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhyanio%2Fgogger/lists"}