{"id":37135618,"url":"https://github.com/clcert/golang-http-logger","last_synced_at":"2026-01-14T15:48:46.061Z","repository":{"id":61625083,"uuid":"540202418","full_name":"clcert/golang-http-logger","owner":"clcert","description":":writing_hand:HTTP logger middleware for Go","archived":false,"fork":true,"pushed_at":"2022-09-22T23:47:22.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T13:39:13.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/go-http-utils/logger","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"go-http-utils/logger","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clcert.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":"2022-09-22T23:15:32.000Z","updated_at":"2024-06-20T13:39:13.950Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/clcert/golang-http-logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clcert/golang-http-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clcert%2Fgolang-http-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clcert%2Fgolang-http-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clcert%2Fgolang-http-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clcert%2Fgolang-http-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clcert","download_url":"https://codeload.github.com/clcert/golang-http-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clcert%2Fgolang-http-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28425045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-14T15:48:45.432Z","updated_at":"2026-01-14T15:48:46.051Z","avatar_url":"https://github.com/clcert.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logger\n[![Build Status](https://travis-ci.org/go-http-utils/logger.svg?branch=master)](https://travis-ci.org/go-http-utils/logger)\n[![Coverage Status](https://coveralls.io/repos/github/go-http-utils/logger/badge.svg?branch=master)](https://coveralls.io/github/go-http-utils/logger?branch=master)\n\nHTTP logger middleware for Go\n\n## Modifications\nA little change has been made, filtering the log of static requests.\n\n## Installation\n\n```sh\ngo get -u github.com/clcert/golang-http-logger\n```\n\n## Documentation\n\nhttps://godoc.org/github.com/go-http-utils/logger\n\n## Usage\n\n```go\nimport (\n  \"net/http\"\n  \"os\"\n\n  \"github.com/clcert/golang-http-logger\"\n)\n\nmux := http.NewServeMux()\nmux.HandleFunc(\"/\", func(res http.ResponseWriter, req *http.Request) {\n  res.Write([]byte(\"Hello World\"))\n})\n\nhttp.ListenAndServe(\":8080\", logger.Handler(mux, os.Stdout, logger.DevLoggerType))\n```\n\n## Supportted log output format\n\n### CombineLoggerType\n\nCombineLoggerType is the standard Apache combined log output\n\n```\n:remote-addr - :remote-user [:date[clf]] \":method :url HTTP/:http-version\" :status :res[content-length] \":referrer\" \":user-agent\"\n```\n\n### CommonLoggerType\n\nCommonLoggerType is the standard Apache common log output\n\n```\n:remote-addr - :remote-user [:date[clf]] \":method :url HTTP/:http-version\" :status :res[content-length]\n```\n\n### DevLoggerType\n\nDevLoggerType is useful for development\n\n```\n:method :url :status :response-time ms - :res[content-length]\n```\n\n### ShortLoggerType\n\nShortLoggerType is shorter than common, including response time\n\n```\n:remote-addr :remote-user :method :url HTTP/:http-version :status :res[content-length] - :response-time ms\n```\n\n### TinyLoggerType\n\nTinyLoggerType is the minimal ouput\n\n```\n:method :url :status :res[content-length] - :response-time ms\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclcert%2Fgolang-http-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclcert%2Fgolang-http-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclcert%2Fgolang-http-logger/lists"}