{"id":20760379,"url":"https://github.com/vanng822/accesslog","last_synced_at":"2026-04-28T04:01:43.879Z","repository":{"id":29941620,"uuid":"33487979","full_name":"vanng822/accesslog","owner":"vanng822","description":"Access logging middleware","archived":false,"fork":false,"pushed_at":"2015-05-05T07:24:05.000Z","size":180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T05:27:31.883Z","etag":null,"topics":[],"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/vanng822.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":"2015-04-06T15:05:02.000Z","updated_at":"2015-05-05T07:24:05.000Z","dependencies_parsed_at":"2022-09-07T06:12:40.559Z","dependency_job_id":null,"html_url":"https://github.com/vanng822/accesslog","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/vanng822%2Faccesslog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Faccesslog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Faccesslog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Faccesslog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanng822","download_url":"https://codeload.github.com/vanng822/accesslog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243076652,"owners_count":20232436,"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":[],"created_at":"2024-11-17T10:13:24.096Z","updated_at":"2025-12-26T04:09:48.502Z","avatar_url":"https://github.com/vanng822.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Accesslog\n\nAccesslog is a middleware for logging access with interfaces func(next http.Handler) http.Handler and HandlerFuncWithNext(w http.ResponseWriter, r *http.Request, next http.HandlerFunc). See http://en.wikipedia.org/wiki/Common_Log_Format for log format.\n\n## Example\n\n```go\t\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/vanng822/accesslog\"\n\t\"github.com/vanng822/r2router\"\n\t\"net/http\"\n\t\"log\"\n)\n\nfunc main() {\n\tseefor := r2router.NewSeeforRouter()\n\tl := accesslog.New()\n\tseefor.Before(l.Handler)\n\tseefor.Get(\"/hello/:name\", func(w http.ResponseWriter, r *http.Request, p r2router.Params) {\n\t\tfmt.Fprintf(w, \"Hello %s!\", p.Get(\"name\"))\n\t})\n\tlog.Fatal(http.ListenAndServe(\":8080\", seefor))\n}\n```\t\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Faccesslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanng822%2Faccesslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Faccesslog/lists"}