{"id":25438038,"url":"https://github.com/innopals/sls-logrus-hook","last_synced_at":"2026-03-09T08:32:33.133Z","repository":{"id":42534473,"uuid":"188953230","full_name":"innopals/sls-logrus-hook","owner":"innopals","description":"Logrus hook for aliyun sls","archived":false,"fork":false,"pushed_at":"2022-04-01T03:47:16.000Z","size":36,"stargazers_count":25,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T11:04:03.582Z","etag":null,"topics":["aliyun","aliyun-sls","golang","logging","logrus","logrus-hook"],"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/innopals.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":"2019-05-28T04:22:30.000Z","updated_at":"2024-08-07T03:45:38.000Z","dependencies_parsed_at":"2022-08-27T23:21:39.703Z","dependency_job_id":null,"html_url":"https://github.com/innopals/sls-logrus-hook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/innopals/sls-logrus-hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innopals%2Fsls-logrus-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innopals%2Fsls-logrus-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innopals%2Fsls-logrus-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innopals%2Fsls-logrus-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/innopals","download_url":"https://codeload.github.com/innopals/sls-logrus-hook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innopals%2Fsls-logrus-hook/sbom","scorecard":{"id":489217,"data":{"date":"2025-08-11","repo":{"name":"github.com/innopals/sls-logrus-hook","commit":"2fe1d6f7ce00f62f1e68e5eae693c0b1d647ae07"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"Code-Review","score":0,"reason":"Found 2/23 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":"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 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"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0053 / GHSA-c3h9-896r-86jm"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T18:37:06.065Z","repository_id":42534473,"created_at":"2025-08-19T18:37:06.065Z","updated_at":"2025-08-19T18:37:06.065Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30287843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: 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":["aliyun","aliyun-sls","golang","logging","logrus","logrus-hook"],"created_at":"2025-02-17T09:28:34.579Z","updated_at":"2026-03-09T08:32:33.115Z","avatar_url":"https://github.com/innopals.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logrus Hook for Aliyun SLS\n\n[![Build Status](https://travis-ci.org/innopals/sls-logrus-hook.svg?branch=master)](https://travis-ci.org/innopals/sls-logrus-hook)\n[![](https://goreportcard.com/badge/github.com/innopals/sls-logrus-hook)](https://goreportcard.com/report/github.com/innopals/sls-logrus-hook)\n\nSimple yet powerful logrus hook for aliyun simple logging service.\n\n## Features\n\n+ Batch sending logs asynchronously\n+ Dump huge logs (exceeds sls service limit) to stdout\n+ Fallback dumping logs to stdout when sls api not available\n\n## Getting Start\n\nSimply add a hook to global logrus instance or any logrus instance.\n\n```golang\nslsLogrusHook, err := hook.NewSlsLogrusHook(\"\u003cproject\u003e.\u003cregion\u003e.log.aliyuncs.com\", \"access_key\", \"access_secret\", \"logstore\", \"topic\")\nlogrus.AddHook(slsLogrusHook)\n```\n\nEnsure logs are flushed to sls before program exits\n```golang\nslsLogrusHook.Flush(5 * time.Second)\n```\n\n## Performance Tuning\n\nDisable processing logs for default output.\n\n```golang\nlogrus.SetFormatter(\u0026hook.NoopFormatter{})\nlogrus.SetOutput(ioutil.Discard)\n```\n\nDisable locks.\n\n```golang\nlogrus.StandardLogger().SetNoLock()\n```\n\nSetting send interval if necessary.\n\n```golang\nslsLogrusHook.SetSendInterval(100 * time.Millisecond) // defaults to 300 * time.Millisecond\n```\n\n## Contributing\n\nThis project welcomes contributions from the community. Contributions are accepted using GitHub pull requests. If you're not familiar with making GitHub pull requests, please refer to the [GitHub documentation \"Creating a pull request\"](https://help.github.com/articles/creating-a-pull-request/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnopals%2Fsls-logrus-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnopals%2Fsls-logrus-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnopals%2Fsls-logrus-hook/lists"}