{"id":18009623,"url":"https://github.com/thedanielforum/apex-gin","last_synced_at":"2026-05-17T18:02:18.024Z","repository":{"id":100224107,"uuid":"92703216","full_name":"thedanielforum/apex-gin","owner":"thedanielforum","description":"Gin middleware for Apex-log","archived":false,"fork":false,"pushed_at":"2018-01-28T11:17:40.000Z","size":2,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T12:51:31.394Z","etag":null,"topics":["apex-logger","apex-logs","gin","gin-middleware","go","golang","structured-logging"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thedanielforum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-29T03:23:22.000Z","updated_at":"2018-09-04T03:33:11.000Z","dependencies_parsed_at":"2023-04-05T17:49:55.869Z","dependency_job_id":null,"html_url":"https://github.com/thedanielforum/apex-gin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thedanielforum/apex-gin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedanielforum%2Fapex-gin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedanielforum%2Fapex-gin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedanielforum%2Fapex-gin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedanielforum%2Fapex-gin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedanielforum","download_url":"https://codeload.github.com/thedanielforum/apex-gin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedanielforum%2Fapex-gin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265686510,"owners_count":23811208,"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":["apex-logger","apex-logs","gin","gin-middleware","go","golang","structured-logging"],"created_at":"2024-10-30T02:09:55.698Z","updated_at":"2026-05-17T18:02:17.943Z","avatar_url":"https://github.com/thedanielforum.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Gin middleware for Apex-log\n\nMiddleware for [gin-gonic](https://github.com/gin-gonic/gin) and [apex-log](https://github.com/apex/log)\n\n[![GoDoc](https://godoc.org/github.com/thedanielforum/apex-gin?status.svg)](https://godoc.org/github.com/thedanielforum/apex-gin)\n\nExample output\n```text\nINFO[0005] client_ip=127.0.0.1 latency=168.439199ms method=PUT path=/v1/user/info/123 status_code=200 message=test message\n```\n\n*Install*\n```bash\ngo get https://github.com/thedanielforum/apex-gin-middleware\n```\n\n*How to use*\n```go\n// Configure apex-log handler\nlog.SetHandler(text.New(os.Stderr))\n\n// Configure gin\nr := gin.New()\n\n// Tell gin to use apex_gin middleware\nr.Use(apex_gin.Handler(\"test message\"))\n\n// Define routes\nr.GET(\"/ping\", func(c *gin.Context) {\n\tc.JSON(200, gin.H{\n\t\t\"message\": \"pong\",\n\t})\n})\n\n// Start HTTP server\nif err := r.Run(\":8080\"); err != nil {\n\tlog.WithError(err).Fatal(\"server failed to start\")\n}\n```\n\nMore info about the apex-log package [medium](https://medium.com/@tjholowaychuk/apex-log-e8d9627f4a9a)\n\n\nTODO\n* Apex log levels info/warning/error/fatal\n* Unit-testing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedanielforum%2Fapex-gin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedanielforum%2Fapex-gin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedanielforum%2Fapex-gin/lists"}