{"id":34208801,"url":"https://github.com/ret0rn/l0gger","last_synced_at":"2026-03-13T13:33:08.227Z","repository":{"id":36989107,"uuid":"505190356","full_name":"ret0rn/l0gger","owner":"ret0rn","description":"wrapper for quick and easy work with the logrus package in golang","archived":false,"fork":false,"pushed_at":"2023-07-10T10:53:24.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T00:38:52.724Z","etag":null,"topics":["go","golang","logger","logrus","package"],"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/ret0rn.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":"2022-06-19T18:34:11.000Z","updated_at":"2022-08-08T16:03:55.000Z","dependencies_parsed_at":"2024-06-20T00:24:22.145Z","dependency_job_id":null,"html_url":"https://github.com/ret0rn/l0gger","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ret0rn/l0gger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ret0rn%2Fl0gger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ret0rn%2Fl0gger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ret0rn%2Fl0gger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ret0rn%2Fl0gger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ret0rn","download_url":"https://codeload.github.com/ret0rn/l0gger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ret0rn%2Fl0gger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30467802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T11:00:43.441Z","status":"ssl_error","status_checked_at":"2026-03-13T11:00:23.173Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["go","golang","logger","logrus","package"],"created_at":"2025-12-15T20:25:36.908Z","updated_at":"2026-03-13T13:33:07.867Z","avatar_url":"https://github.com/ret0rn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# L0gger\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://i.imgur.com/3jcSnYp.png\"\u003e\n  \u003cimg src=\"https://i.imgur.com/kDaWjYL.png\" width=\"73\" height=\"88\" alt=\"l0gger\" title=\"l0gger\"/\u003e \n\u003c/picture\u003e\n\n\nWrapper for quick and easy work with the [logrus](https://github.com/sirupsen/logrus) package in golang\n\n[![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/ret0rn/l0gger?style=plastic)](https://github.com/ret0rn/l0gger/blob/master/go.mod) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/ret0rn/l0gger?style=plastic)](https://github.com/ret0rn/l0gger/releases) [![GitHub Repo stars](https://img.shields.io/github/stars/ret0rn/l0gger?style=plastic)](https://github.com/ret0rn/l0gger/stargazers) [![GitHub](https://img.shields.io/github/license/ret0rn/l0gger?style=plastic)](https://github.com/ret0rn/l0gger/blob/master/LICENSE)\n\n\n\n ## Install \n\n```\ngo get github.com/ret0rn/l0gger\n```\n\n\n ## Formaters \n\n - ```JsonFormater```\n - ```TextFormater```\n\n ## Log Levels\n- ```DebugLvl```\n- ```InfoLvl```\n- ```WarningLvl```\n- ```ErrorLvl```\n- ```FatalLvl ```\n\n|Log Level| Log Messages|\n|---------|-------------|\n|DEBUG \t | DEBUG, INFO, WARNING, ERROR, FATAL|\n|INFO \t | \t  INFO, WARNING, ERROR, FATAL|\n|WARNING | \t\tWARNING, ERROR, FATAL|\n|ERROR \t | \t\t\t ERROR, FATAL|\n|FATAL \t |\t\t\t \tFATAL|\n\n\n## Log Out\n\n- File\n- Сonsole\n- Others ```io.Writer```'s\n\n## Usage\n\n```golang\nvar log, err = l0gger.New([1], [2], [3]) \n```\n1. **Log Out** \n\n\t- type ```string``` - log to file\n\t- ```nil``` or ```os.Stdout``` - log to console \n\t- type ```io.Writer``` - others io.Writers\n2. **Formaters**\n\t- ```JsonFormater``` - JSON Formater\n\t\n\t\t```{\"file\":\"test.go:18\",\"level\":\"info\",\"msg\":\"hello\",\"time\":\"2022-06-19T22:14:02+03:00\"}```\n\n\t- ```TextFormater``` - Text Formater\n\n\t\t```time=\"2022-06-19T22:15:01+03:00\" level=info msg=hello file=\"test.go:18\"```\n3. **Level**\n\t- ```DebugLvl```\n\t- ```InfoLvl```\n\t- ```WarningLvl```\n\t- ```ErrorLvl```\n\t- ```FatalLvl ```\n\n\n### Log to Console \n```go\nimport \"github.com/ret0rn/l0gger\"\n\nfunc main() {\n\n\tvar log, err = l0gger.New(nil, l0gger.JsonFormater, l0gger.DebugLvl)\n\n\tlog.Info(\"Info test\")\n}\n```\n\n### Log to File\n```go\nimport \"github.com/ret0rn/l0gger\"\n\nfunc main() {\n\n\tvar log, err = l0gger.New(\"logger.log\", l0gger.JsonFormater, l0gger.DebugLvl)\n\n\tlog.Info(\"Info test\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fret0rn%2Fl0gger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fret0rn%2Fl0gger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fret0rn%2Fl0gger/lists"}