{"id":16955745,"url":"https://github.com/neko-neko/echo-logrus","last_synced_at":"2025-03-22T13:31:50.751Z","repository":{"id":40680513,"uuid":"106939960","full_name":"neko-neko/echo-logrus","owner":"neko-neko","description":"echo-logrus is a middleware that provides logrus logger support for echo.","archived":false,"fork":false,"pushed_at":"2023-03-09T17:44:12.000Z","size":2633,"stargazers_count":35,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T11:48:12.399Z","etag":null,"topics":["echo","go","golang","labstack-echo","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neko-neko.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":"2017-10-14T15:40:05.000Z","updated_at":"2024-07-09T09:50:20.000Z","dependencies_parsed_at":"2024-06-18T17:04:20.610Z","dependency_job_id":"60f99267-b2fa-4848-9678-eecc128158eb","html_url":"https://github.com/neko-neko/echo-logrus","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neko-neko%2Fecho-logrus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neko-neko%2Fecho-logrus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neko-neko%2Fecho-logrus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neko-neko%2Fecho-logrus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neko-neko","download_url":"https://codeload.github.com/neko-neko/echo-logrus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244962899,"owners_count":20539240,"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","go","golang","labstack-echo","middleware"],"created_at":"2024-10-13T22:13:09.200Z","updated_at":"2025-03-22T13:31:50.482Z","avatar_url":"https://github.com/neko-neko.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# echo-logrus\n[![Build Status](https://travis-ci.org/neko-neko/echo-logrus.svg?branch=master)](https://travis-ci.org/neko-neko/echo-logrus)\n[![Go Report Card](https://goreportcard.com/badge/github.com/neko-neko/echo-logrus)](https://goreportcard.com/report/github.com/neko-neko/echo-logrus)\n[![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/neko-neko/echo-logrus/master/LICENSE)\n\n## Overview\nMiddleware echo-logrus is a [logrus](https://github.com/sirupsen/logrus) logger support for [Echo](https://github.com/labstack/echo).  \nThis middleware is working on Echo v4.\n\n## Getting Started\n### For [dep](https://github.com/golang/dep) users\nWhen your project top dir run this.  \n```bash\n$ dep ensure -add github.com/neko-neko/echo-logrus\n```\n\n### Modules users\n```bash\n$ go get github.com/neko-neko/echo-logrus/v2\n```\n\n## Example\n```go\npackage main\n\nimport (\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/sirupsen/logrus\"\n\t\"github.com/labstack/echo/v4\"\n\techoLog \"github.com/labstack/gommon/log\"\n\t\"github.com/neko-neko/echo-logrus/v2\"\n\t\"github.com/neko-neko/echo-logrus/v2/log\"\n)\n\nfunc main() {\n\te := echo.New()\n\n\t// Logger\n\tlog.Logger().SetOutput(os.Stdout)\n\tlog.Logger().SetLevel(echoLog.INFO)\n\tlog.Logger().SetFormatter(\u0026logrus.JSONFormatter{\n\t\tTimestampFormat: time.RFC3339,\n\t})\n\te.Logger = log.Logger()\n\te.Use(middleware.Logger())\n\tlog.Info(\"Logger enabled!!\")\n\n\te.Logger.Fatal(e.Start(\":1323\"))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneko-neko%2Fecho-logrus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneko-neko%2Fecho-logrus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneko-neko%2Fecho-logrus/lists"}