{"id":34515630,"url":"https://github.com/chambo-e/logry","last_synced_at":"2026-04-24T10:03:10.025Z","repository":{"id":57598607,"uuid":"87635756","full_name":"chambo-e/logry","owner":"chambo-e","description":"A zero configuration logrus with sentry integration","archived":false,"fork":false,"pushed_at":"2017-04-08T14:33:50.000Z","size":230,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T06:42:55.975Z","etag":null,"topics":["golang","logger","logging","logrus","logrus-hook","sentry"],"latest_commit_sha":null,"homepage":null,"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/chambo-e.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}},"created_at":"2017-04-08T13:28:12.000Z","updated_at":"2017-04-08T14:48:34.000Z","dependencies_parsed_at":"2022-08-29T23:52:05.940Z","dependency_job_id":null,"html_url":"https://github.com/chambo-e/logry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chambo-e/logry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chambo-e%2Flogry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chambo-e%2Flogry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chambo-e%2Flogry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chambo-e%2Flogry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chambo-e","download_url":"https://codeload.github.com/chambo-e/logry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chambo-e%2Flogry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32218290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T09:47:08.147Z","status":"ssl_error","status_checked_at":"2026-04-24T09:46:41.165Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","logger","logging","logrus","logrus-hook","sentry"],"created_at":"2025-12-24T04:21:58.351Z","updated_at":"2026-04-24T10:03:10.020Z","avatar_url":"https://github.com/chambo-e.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `logry` [![GoDoc](https://godoc.org/github.com/chambo-e/logry?status.svg)](https://godoc.org/github.com/chambo-e/logry)\n\n## Description\n\n`logry` is a painless logging package with sentry integration.  \n\nIt's a simple [`logrus`](https://github.com/sirupsen/logrus) with a bundled [Sentry](https://sentry.io/) integration thanks to [`logrus_sentry`](https://github.com/evalphobia/logrus_sentry).\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"github.com/chambo-e/logry\"\n)\n\nfunc main() {\n    logry.Debugln(\"Will be printed on stdout except if APP_ENV=production\")\n    logry.Println(\"Will be printed on stdout\")\n    logry.Errorln(\"Will be printed on stderr and sent to Sentry\")\n    logry.Fatalln(\"Will be printed on stderr and sent to Sentry\")\n    logry.Panicln(\"Will be printed on stderr and sent to Sentry\")\n}\n```\n\n```bash\n$ SENTRY_DSN=https://xxx:yyy@domain.com/XXX go run main.go\n```\n\n## Difference with `logrus`\n\nYou can do everything you were doing with `logrus` with `logry`, they expose the exact same interface.\n\nThere is only one main difference, the default log level is logrus.DebugLevel. You can change it with SetLevel or by setting env var `APP_ENV=production`.\n\n`logry` reads you project DSN from app env var `SENTRY_DSN`. Default is an empty DSN and just disable the sentry exception logging.\n\nThese message levels are sent to sentry:\n```go\n[]logrus.Level{\n    logrus.PanicLevel,\n    logrus.FatalLevel,\n    logrus.ErrorLevel,\n}\n```\n\n`logry` also expose two additional methods:\n```go\n// To set sentry environment tag\n// Default value is \"development\" and can be changed with APP_ENV\nlogry.SetEnvironment(\"lala\")\n\n// To set sentry release tag\nlogry.SetRelease(\"1.0.0\")\n```\n\n### Contributions\n\nContributions are more than welcome as usual, feel free to open an issue :)\n\n### Tests\n\nThere is no tests on this project because everything this package does is inside an hard to test init() function. But if this is an issue for some of you I'll be open to discuss on how it could be made.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchambo-e%2Flogry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchambo-e%2Flogry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchambo-e%2Flogry/lists"}