{"id":13779052,"url":"https://github.com/koajs/accesslog","last_synced_at":"2025-10-19T13:31:40.651Z","repository":{"id":23495537,"uuid":"26860943","full_name":"koajs/accesslog","owner":"koajs","description":"Middleware for common log format access logs","archived":false,"fork":false,"pushed_at":"2024-10-12T23:02:00.000Z","size":112,"stargazers_count":20,"open_issues_count":0,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-29T15:32:22.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/koajs.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":"2014-11-19T12:43:54.000Z","updated_at":"2024-10-12T23:02:03.000Z","dependencies_parsed_at":"2024-11-06T08:28:50.714Z","dependency_job_id":"1a81f623-8bb6-4211-89dd-52dc1c6ad416","html_url":"https://github.com/koajs/accesslog","commit_stats":{"total_commits":10,"total_committers":3,"mean_commits":"3.3333333333333335","dds":0.5,"last_synced_commit":"ab4fc5ba5f80afc9678d858bd84740e5caf27885"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Faccesslog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Faccesslog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Faccesslog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Faccesslog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koajs","download_url":"https://codeload.github.com/koajs/accesslog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237133634,"owners_count":19260514,"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-08-03T18:01:00.462Z","updated_at":"2025-10-19T13:31:35.299Z","avatar_url":"https://github.com/koajs.png","language":"JavaScript","readme":"# [Accesslog](https://github.com/koajs/accesslog)\n\nOutput [Common Log Format](http://en.wikipedia.org/wiki/Common_Log_Format) access logs to any stream. Defaults to `process.stdout`.\n\n\u003e Notice: We recommend using `@koa/access-log` for installation, as both `koa-accesslog` and `@koa/access-log` refer to the same module. However, in our next major version bump (v2), we will deprecate `koa-accesslog` and only maintain `@koa/access-log`.\n\n## Install\n\n```bash\n# npm ..\nnpm i koa-accesslog\n# yarn ..\nyarn add koa-accesslog\n```\n\nor\n\n```bash\n# npm ..\nnpm i @koa/access-log\n# yarn ..\nyarn add @koa/access-log\n```\n\n## Usage\n\n```js\nconst Koa = require('koa');\nconst accesslog = require('koa-accesslog');\n// or\n// const accesslog = require('@koa/access-log');\nconst app = new Koa();\n\napp.use(accesslog());\n```\n\n## Output\n\n```\n127.0.0.1 - - [19/Nov/2014:13:47:37 +0100] \"GET / HTTP/1.X\" 404 -\n```\n\n## Configure\n\nYou may configure Accesslog to use any writable stream such as an\ninstance of `stream.PassThrough` as seen below.\n\n```js\nconst log = new stream.PassThrough();\napp.use(accesslog(log));\n```\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":["Middleware","仓库","JavaScript"],"sub_categories":["中间件"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoajs%2Faccesslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoajs%2Faccesslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoajs%2Faccesslog/lists"}