{"id":18864438,"url":"https://github.com/spirosoik/echo-logrus","last_synced_at":"2025-10-28T19:37:17.112Z","repository":{"id":57550475,"uuid":"273659798","full_name":"spirosoik/echo-logrus","owner":"spirosoik","description":"A logging middleware for minimal golang Echo framework with logrus","archived":false,"fork":false,"pushed_at":"2020-06-20T08:59:19.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T02:23:40.540Z","etag":null,"topics":["echo-framework","golang","logging","middleware"],"latest_commit_sha":null,"homepage":null,"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/spirosoik.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":"2020-06-20T07:26:08.000Z","updated_at":"2023-01-21T13:18:21.000Z","dependencies_parsed_at":"2022-08-29T22:30:59.753Z","dependency_job_id":null,"html_url":"https://github.com/spirosoik/echo-logrus","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fecho-logrus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fecho-logrus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fecho-logrus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spirosoik%2Fecho-logrus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spirosoik","download_url":"https://codeload.github.com/spirosoik/echo-logrus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886328,"owners_count":21177644,"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":["echo-framework","golang","logging","middleware"],"created_at":"2024-11-08T04:41:18.764Z","updated_at":"2025-10-28T19:37:17.056Z","avatar_url":"https://github.com/spirosoik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# echo-logger\nA logging middleware for minimal golang Echo framework with logrus\n\n## Usage\n\n```go\nimport (\n\t\"net/http\"\n\n\t\"github.com/labstack/echo/v4\"\n\t\"github.com/sirupsen/logrus\"\n\techologrus \"github.com/spirosoik/echo-logrus\"\n)\n\nfunc main() {\n\te := echo.New()\n\tlogger := logrus.New()\n\tlogger.SetLevel(logrus.DebugLevel)\n\n  // Usage of middleware\n\tmw := echologrus.NewLoggerMiddleware(logger)\n\te.Logger = mw\n\te.Use(mw.Hook())\n\n\te.GET(\"/\", func(c echo.Context) error {\n\t\tc.Logger().Debug(\"test\") // test logging\n\t\tc.Logger().Warn(\"test\") // test logging\n\t\treturn c.String(http.StatusOK, \"Hello, World!\")\n\t})\n\te.Logger.Fatal(e.Start(\":3000\"))\n}\n\n```\n\nThere is an example in [_example](_examples/) folder and you can run it:\n\n```bash\n# in one terminal\ngo run _examples/main.go\n```\n\n```bash\n# in second terminal\ncurl localhost:3000\n```\n\n# Contributors\n\n[Roel Reijerse](https://github.com/rollulus) Software Engineer","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspirosoik%2Fecho-logrus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspirosoik%2Fecho-logrus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspirosoik%2Fecho-logrus/lists"}