{"id":34159870,"url":"https://github.com/aubss/fasthttplogger","last_synced_at":"2026-04-08T12:02:53.527Z","repository":{"id":57496149,"uuid":"92940199","full_name":"AubSs/fasthttplogger","owner":"AubSs","description":"HTTP request logger middleware for FastHttp","archived":false,"fork":false,"pushed_at":"2017-05-31T12:32:29.000Z","size":5,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-18T02:27:06.343Z","etag":null,"topics":["fasthttp","fasthttprouter","go","golang","logger","logger-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/AubSs.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-05-31T11:40:01.000Z","updated_at":"2024-09-13T14:23:07.000Z","dependencies_parsed_at":"2022-09-02T20:50:50.869Z","dependency_job_id":null,"html_url":"https://github.com/AubSs/fasthttplogger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AubSs/fasthttplogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AubSs%2Ffasthttplogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AubSs%2Ffasthttplogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AubSs%2Ffasthttplogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AubSs%2Ffasthttplogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AubSs","download_url":"https://codeload.github.com/AubSs/fasthttplogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AubSs%2Ffasthttplogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31554110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["fasthttp","fasthttprouter","go","golang","logger","logger-middleware"],"created_at":"2025-12-15T08:04:29.928Z","updated_at":"2026-04-08T12:02:53.448Z","avatar_url":"https://github.com/AubSs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastHttpLogger\nHTTP request logger middleware for FastHttp\n\n\n##### Tiny / TinyColored\n```\n\u003cmethod\u003e \u003curl\u003e - \u003cstatus\u003e - \u003cresponse-time us\u003e\nGET /hello - 200 - 11.925 us\n```\n\n#### Short / ShortColored\n```\n\u003cremote-addr\u003e | \u003cHTTP/:http-version\u003e | \u003cmethod\u003e \u003curl\u003e - \u003cstatus\u003e - \u003cresponse-time us\u003e\n127.0.0.1:53324 | HTTP/1.1 | GET /hello - 200 - 44.8µs\n```\n\n#### Combined / CombinedColored\n```\n[\u003ctime\u003e] \u003cremote-addr\u003e | \u003cHTTP/http-version\u003e | \u003cmethod\u003e \u003curl\u003e - \u003cstatus\u003e - \u003cresponse-time us\u003e | \u003cuser-agent\u003e\n[2017/05/31 - 13:27:28] 127.0.0.1:54082 | HTTP/1.1 | GET /hello - 200 - 48.279µs | Paw/3.1.1 (Macintosh; OS X/10.12.5) GCDHTTPRequest\n```\n\n## Examples\n\n### FastHttp\n```go\nfunc Hello(ctx *fasthttp.RequestCtx) {\n  fmt.Fprintf(ctx, \"hello, %s!\\n\", ctx.UserValue(\"name\"))\n}\n\nfunc main() {\n\tm := func(ctx *fasthttp.RequestCtx) {\n\t\tswitch string(ctx.Path()) {\n\t\tcase \"/hello\":\n\t\t\tHello(ctx)\n\t\tdefault:\n\t\t\tctx.Error(\"not found\", fasthttp.StatusNotFound)\n\t\t}\n\t}\n\n\tfasthttp.ListenAndServe(\":8080\", fasthttplogger.Tiny(m))\n}\n```\n\n### FastHttp + FastHttpRouter\n```go\nfunc Hello(ctx *fasthttp.RequestCtx) {\n\tfmt.Fprintf(ctx, \"hello, %s!\\n\", ctx.UserValue(\"name\"))\n}\n\nfunc main() {\n\trouter := fasthttprouter.New()\n\trouter.GET(\"/hello/:name\", Hello)\n\ts := \u0026fasthttp.Server{\n\t\tHandler: fasthttplogger.CombinedColored(router.Handler),\n\t\tName: \"FastHttpLogger\",\n\t}\n\tlog.Fatal(s.ListenAndServe(\":8080\"))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faubss%2Ffasthttplogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faubss%2Ffasthttplogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faubss%2Ffasthttplogger/lists"}