{"id":13413305,"url":"https://github.com/ewwwwwqm/logdump","last_synced_at":"2026-01-17T17:24:29.717Z","repository":{"id":57496860,"uuid":"78861795","full_name":"ewwwwwqm/logdump","owner":"ewwwwwqm","description":"Package for multi-level logging","archived":false,"fork":false,"pushed_at":"2018-04-02T00:28:16.000Z","size":7,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-14T04:02:01.609Z","etag":null,"topics":[],"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/ewwwwwqm.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}},"created_at":"2017-01-13T15:34:31.000Z","updated_at":"2024-07-09T09:49:51.000Z","dependencies_parsed_at":"2022-09-03T02:30:50.662Z","dependency_job_id":null,"html_url":"https://github.com/ewwwwwqm/logdump","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ewwwwwqm/logdump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewwwwwqm%2Flogdump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewwwwwqm%2Flogdump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewwwwwqm%2Flogdump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewwwwwqm%2Flogdump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ewwwwwqm","download_url":"https://codeload.github.com/ewwwwwqm/logdump/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewwwwwqm%2Flogdump/sbom","scorecard":{"id":387464,"data":{"date":"2025-08-11","repo":{"name":"github.com/ewwwwwqm/logdump","commit":"5af84c4f36b68b35de8f8418869dee357a0137c4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/14 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-18T16:59:04.671Z","repository_id":57496860,"created_at":"2025-08-18T16:59:04.671Z","updated_at":"2025-08-18T16:59:04.671Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28512847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"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":[],"created_at":"2024-07-30T20:01:37.287Z","updated_at":"2026-01-17T17:24:29.695Z","avatar_url":"https://github.com/ewwwwwqm.png","language":"Go","funding_links":[],"categories":["Logging","Logging 日志库","\u003cspan id=\"日志-logging\"\u003e日志 Logging\u003c/span\u003e","日志记录","日志","日誌","Relational Databases"],"sub_categories":["Advanced Console UIs","Search and Analytic Databases","SQL 查询语句构建库","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","检索及分析资料库","交流","高级控制台界面","高級控制台界面"],"readme":"# Logdump\n\n[![Godoc Reference][godoc-img]][godoc]\n[![Build Status][ci-img]][ci]\n[![Go Report Card][goreportcard-img]][goreportcard]\n\nPackage for writing logs to multiple files\n\n## Usage\n``` $ go get github.com/ewwwwwqm/logdump ```\n\n## Example\n``` main.go ```\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/ewwwwwqm/logdump\"\n)\n\nfunc main() {\n\t// create message zones and assign files for output\n\tnewLog := map[string]interface{}{\n\t\t\"error\": \"error.log\",\n\t\t\"warning\": \"warning.log\",\n\t\t\"notice\": \"notice.log\",\n\t}\n\n\t// init logger\n\tlogdump.Init(newLog)\n\n\t// for ex. dump error\n\tlogdump.Write(\"error\", \"something had an error\")\n\n\t// default output\n\tlog.Println(\"Standard output to os.Stderr\")\n\n\t// few more errors\n\tlogdump.Write(\"notice\", \"some notice\")\n\tlogdump.Write(\"error\", \"another error\")\n\tlogdump.Write(\"warning\", \"fancy warning\")\n\n\t// wrong message zone, output to os.Stderr\n\tlogdump.Write(\"wrong_zone\", \"fail\")\n}\n```\nBefore running:\n\n![Before run](https://lh3.googleusercontent.com/qu3mHs6Ug0fxwtFFDKb5BiJdsQRG1gpSyygB4mi4869ukJpdTtjoVaNzpwGzyBeSk1eZOpyvejSib56FayhNa1PP9FPIHvZ9jEED_bPO7rrLlcsNJBQzmuydzC2Kww5d-s1DlChnFOpiv3PV_bzYHYhVLODXJeq6IC8DfuzRQUq5jTBJIifzwdGXmaFtBW3islxQffHn4OJTbAqldgXXyPL4dX-5QO3GFagcjom-FN2Jm0c069H3ZhqvR6c_N1NbHuDsDR7pOggKq8R8cRbmdd5n4ZW2zrQbopzvH_H87pJdfVovAB8W1A9XxB6iebZk4PcRp1eHmFygImkVlCEd1xYWUfGFuBG_29YJ0VxVyh1e_uEtJ2uUnFh7lqerYHcSdyZVjaeTpZvLnkB4u-ppwmsU3KzyBKIU-x1_9nYQWjVkV5VUU8bFvFY2lFF4misTR7U-jaG6HKMVLhIaBVLY-RO7zQpOpDSesV3AFIo5sHhoiPNzMvwpEt1pOOjHRenwfkGQT0vvpIm7zrv00NJAGAXkmJviKC3qVK8n7xkO36-um4icFbvArQxIyQqtj_0OW8n7z2pb5eDKicR4qrNA066jHGoTcuaS7PSQZAK-37f2OyR32N-h1L3lLef_1WAepheI9A8G7eDQkvPN_reG3p_ylzscQz5jsXlmTHYJeg=w609-h84-no)\n\nRun the app:\n\n``` $ go run main.go ```\n\n![After run](https://lh3.googleusercontent.com/ADOHxXnHMnZO1Dt5oqHhWBkuTq-5oM13mhQUcQtoMZ2LsPQqecsACPepOTbXZO9bemgJb0rHIKQAD7Sa45s6CXccUS7ugNbYehJZ69tXcj8y2PYBXLnT0SgzyXTmPVlY30r-BKuyBVFoMTsoZIE5Fx6w9LP2hDfd_Nb_vpPzy2sQRVSwxRXGilJKwSuc6M0b8YriUk4EB6e_d4FWGF6LTV9F6NeXg-WRKp5JS5XoHi5WAkW9ntlpKOd_EbMuNnw4IjJIbjI0d-geZEpXoT7RsKTRVjARUBuPR3K8LZ4MgPQMLM7e4MAC5-uH9JqB6Sp5Dbu9viEbrtlBG8HrhQmPlztJ7KBfBGxVmauzoRIqY4nOBffhXu7Wd89_jw5PsBtxr4tyf8w7bApdET2q98V2_UtDFz47L5mZ44OYPip6wEoSBEixSOhgajUdNY-Sz_HAWZDdszqyYA0R_H1SvGpMD-AVeTyTH849UAyl7yHJ4s2uON14VPztpJP-WvkRhpBnv5sDw-LM30uAOsuYfAEh8WLSoKxGdqxPlJsHnwDeRb_rvxAyKKp8PAz_bA0k8kywdIM8V6MgA8_5NIE5xCh-qfOgqAxBMog9qVSnSue5Tmd5bfgpmIQlQ5HuK9qUK2cjz6Utce_Eq70FdGprruyiT-n1ymg7fnPv1SJDHtYh6w=w609-h84-no)\n\nFiles were created.\n\n#### Output\n``` os.Stderr: ```\n```\n2017/01/13 17:45:48 Standard output to os.Stderr\n2017/01/13 17:45:48 Type wrong_zone was not assigned for log output\n```\n``` error.log ```\n```\n2017/01/13 17:45:48 Start error logging\n2017/01/13 17:45:48 something had an error\n2017/01/13 17:45:48 another error\n```\n``` warning.log ```\n```\n2017/01/13 17:45:48 Start warning logging\n2017/01/13 17:45:48 fancy warning\n```\n``` notice.log ```\n```\n2017/01/13 17:45:48 Start notice logging\n2017/01/13 17:45:48 some notice\n```\n\n[godoc]: http://godoc.org/github.com/ewwwwwqm/logdump\n[godoc-img]: https://godoc.org/github.com/ewwwwwqm/logdump?status.svg\n[ci-img]: https://travis-ci.org/ewwwwwqm/logdump.svg?branch=master\n[cov-img]: https://coveralls.io/repos/github/ewwwwwqm/logdumpbadge.svg?branch=master\n[ci]: https://travis-ci.org/ewwwwwqm/logdump\n[cov]: https://coveralls.io/github/ewwwwwqm/logdump?branch=master\n[goreportcard-img]: https://goreportcard.com/badge/github.com/ewwwwwqm/logdump?branch=master\n[goreportcard]: https://goreportcard.com/report/github.com/ewwwwwqm/logdump?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewwwwwqm%2Flogdump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fewwwwwqm%2Flogdump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewwwwwqm%2Flogdump/lists"}