{"id":36482940,"url":"https://github.com/negasus/logserver","last_synced_at":"2026-01-12T01:04:16.201Z","repository":{"id":46175455,"uuid":"218245932","full_name":"negasus/logserver","owner":"negasus","description":"Simple tool for logging HTTP requests","archived":false,"fork":false,"pushed_at":"2023-12-18T11:40:33.000Z","size":197,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T10:18:12.212Z","etag":null,"topics":["log","tool"],"latest_commit_sha":null,"homepage":"","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/negasus.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":"2019-10-29T09:07:11.000Z","updated_at":"2023-10-24T22:28:39.000Z","dependencies_parsed_at":"2024-06-20T09:26:27.876Z","dependency_job_id":"9cdd52ee-ad95-4c90-b4c4-b21286e2afe6","html_url":"https://github.com/negasus/logserver","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/negasus/logserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negasus%2Flogserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negasus%2Flogserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negasus%2Flogserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negasus%2Flogserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/negasus","download_url":"https://codeload.github.com/negasus/logserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/negasus%2Flogserver/sbom","scorecard":{"id":678605,"data":{"date":"2025-08-11","repo":{"name":"github.com/negasus/logserver","commit":"8e541f56057045366140c68033d9feb2ada3c7ec"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T22:22:25.391Z","repository_id":46175455,"created_at":"2025-08-21T22:22:25.392Z","updated_at":"2025-08-21T22:22:25.392Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28330195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"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":["log","tool"],"created_at":"2026-01-12T01:04:16.137Z","updated_at":"2026-01-12T01:04:16.192Z","avatar_url":"https://github.com/negasus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logserver\n\nSimple service for logging all incoming requests\n\n## Install\n\nAs binary\n\n```bash\ngo install github.com/negasus/logserver@latest\n```\n\nOr you can use docker image\n\n```bash\ndocker pull negasus/logserver\n```\n\n## Params\n\n- `-a` or env variable `LISTEN_ADDR` for define listen address (default: `:2000`)\n- `-b` or env variable `RESPONSE_BODY` for define response body (default: `empty`)\n- `-c` or env variable `RESPONSE_CODE` for define response status code (default: `200`)\n- `-t` or env variable `CONTENT_TYPE` for define response content type header (default: `empty`)\n- `-f` or env variable `FILE_SERVER` for define file server path (default: `empty`)\n \n\u003e  If you define the response body, `\\n` will be replaced to new line separator, and `\\t` will be replaced to `tab` \n\nYou can specify filename for response body. You should define response body as `file://\u003cfilename_path\u003e`\n\nIf you use `-f`, you should not use `-b`, `-c` and `-t` params\n\nExample:\n\n```\n# use /home/user/demo.json for response body\n\n$ logserver -b file:///home/user/demo.json\n```\n\n## Usage\n\n```bash\ndocker run -d -p 2000:2000 negasus/logserver\n\ncurl 127.0.0.1:2000\n\ncurl --header \"Content-Type: application/json\" \\\n    --request POST \\\n    --data '{\"username\":\"xyz\",\"password\":\"xyz\"}' \\\n    http://127.0.0.1:2000/api/login\n```\n\noutput\n\n```\n___________[ 1 ]___________\n|  2021-07-28 11:31:45.939254 +0300 MSK m=+4.341261653\n|  [127.0.0.1:52654] GET /\n|\n|  User-Agent: [curl/7.64.1]\n|  Accept: [*/*]\n\n___________[ 2 ]___________\n|  2021-07-28 11:31:48.179909 +0300 MSK m=+6.581954448\n|  [127.0.0.1:52655] POST /api/login\n|\n|  User-Agent: [curl/7.64.1]\n|  Accept: [*/*]\n|  Content-Type: [application/json]\n|  Content-Length: [35]\n\n{\"username\":\"xyz\",\"password\":\"xyz\"}\n```\n\n## changelog\n\n### v1.1.1 (2023-12-18)\n\n- add env for fileserver\n\n### v1.1.0 (2023-12-18)\n\n- refactoring\n\n### v1.0.7 (2022-08-24)\n\n- print headers as \"%#v\" for convenience parsing multiple headers\n\n### v1.0.6 (2021-10-09)\n\n- add `content-type` options\n- use file for response body\n- go 1.17\n\n### v1.0.5 (2021-07-28)\n\n- replace `\\n` and `\\t` in the response body\n\n### v1.0.4\n\n- add response status code\n- decode gzip request body if needed\n\n### v1.0.3\n\n- add response body\n- output application version on start\n\n### v1.0.2\n\n- add CORS headers\n\n### v1.0.1\n\n### v1.0.0\n\n- initial version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnegasus%2Flogserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnegasus%2Flogserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnegasus%2Flogserver/lists"}