{"id":42518773,"url":"https://github.com/bearatol/lg","last_synced_at":"2026-01-28T15:11:48.083Z","repository":{"id":57628290,"uuid":"399874304","full_name":"bearatol/lg","owner":"bearatol","description":"✍🐻 A simple golang logger that extends the standard log package.","archived":false,"fork":false,"pushed_at":"2023-03-24T10:14:55.000Z","size":29,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-19T20:27:37.088Z","etag":null,"topics":["console","console-color","console-log","console-logger","go","golang","log","logger","logging","minimal","simple"],"latest_commit_sha":null,"homepage":"http://github.com/bearatol/lg","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/bearatol.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":"2021-08-25T15:47:27.000Z","updated_at":"2023-04-25T15:34:43.000Z","dependencies_parsed_at":"2024-06-19T19:42:56.833Z","dependency_job_id":"14c5b77e-fe74-470e-a637-b172dfcd59a5","html_url":"https://github.com/bearatol/lg","commit_stats":{"total_commits":17,"total_committers":4,"mean_commits":4.25,"dds":"0.47058823529411764","last_synced_commit":"db311affb0e2500cbcd582c4a055d96cdb661ae2"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bearatol/lg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearatol%2Flg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearatol%2Flg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearatol%2Flg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearatol%2Flg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bearatol","download_url":"https://codeload.github.com/bearatol/lg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearatol%2Flg/sbom","scorecard":{"id":229482,"data":{"date":"2025-08-11","repo":{"name":"github.com/bearatol/lg","commit":"8d816284f454b776be55bbffd25076d7b876528b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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 1/22 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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/lg.yml:1","Info: no jobLevel write permissions found"],"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lg.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/bearatol/lg/lg.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lg.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/bearatol/lg/lg.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lg.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/bearatol/lg/lg.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lg.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/bearatol/lg/lg.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lg.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/bearatol/lg/lg.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction 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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.1 not signed: https://api.github.com/repos/bearatol/lg/releases/48479394","Warn: release artifact v1.0.1 does not have provenance: https://api.github.com/repos/bearatol/lg/releases/48479394"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 9 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-17T04:35:16.861Z","repository_id":57628290,"created_at":"2025-08-17T04:35:16.862Z","updated_at":"2025-08-17T04:35:16.862Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T13:02:32.985Z","status":"ssl_error","status_checked_at":"2026-01-28T13:02:04.945Z","response_time":57,"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":["console","console-color","console-log","console-logger","go","golang","log","logger","logging","minimal","simple"],"created_at":"2026-01-28T15:11:47.363Z","updated_at":"2026-01-28T15:11:48.078Z","avatar_url":"https://github.com/bearatol.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A simple logger for golang  \n\n[![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci] [![Go Report Card][report-img]][report]\n\n### A simple extension of the standard \"log\" library to minimize effort, code and ease of use\n\n![lg][example-img]\n\nThe logger uses the standard go \"log\" package. Allows you to install and use expanded information (prefix, date and time, file and line) without cluttering up with unnecessary code. It also colors text on Linux and OS X for better reading of logs.  \n\n## Install\n\n```bash\ngo get -u github.com/bearatol/lg\n```\n\n## Examples\n\n```go\npackage main\n\nimport (\n\t\"github.com/bearatol/lg\"\n)\n\nfunc main() {\n\ttestArray := [...]int{1, 2, 3, 4, 5}\n\n\t// Info\n\tlg.Info(\"test text\", testArray)\n\tlg.Infoln(\"test text\", testArray)\n\tlg.Infof(\"some values: %s, %v\", \"test text\", testArray)\n\n\t// Debug\n\tlg.Debug(\"test text\", testArray)\n\tlg.Debugln(\"test text\", testArray)\n\tlg.Debugf(\"some values: %s, %v\", \"test text\", testArray)\n\n\t// Trace\n\tlg.Trace(\"test text\", testArray)\n\tlg.Traceln(\"test text\", testArray)\n\tlg.Tracef(\"some values: %s, %v\", \"test text\", testArray)\n\n\t// Warning\n\tlg.Warn(\"test text\", testArray)\n\tlg.Warnln(\"test text\", testArray)\n\tlg.Warnf(\"some values: %s, %v\", \"test text\", testArray)\n\n\t// Error\n\tlg.Error(\"test text\", testArray)\n\tlg.Errorln(\"test text\", testArray)\n\tlg.Errorf(\"some values: %s, %v\", \"test text\", testArray)\n\n\t// Fatal\n\tlg.Fatal(\"test text\", testArray)\n\tlg.Fatalln(\"test text\", testArray)\n\tlg.Fatalf(\"some values: %s, %v\", \"test text\", testArray)\n\n\t// Panic\n\tlg.Panic(\"test text\", testArray)\n\tlg.Panicln(\"test text\", testArray)\n\tlg.Panicf(\"some values: %s, %v\", \"test text\", testArray)\n}\n```\n\n### You can turn off all properties of logs\n\nFor example:  \n\n```go\npackage main\n\nimport \"github.com/bearatol/lg\"\n\nfunc main() {\n    lg.GetLogger().OffColor()\n    lg.GetLogger().OffPrefix()\n    lg.GetLogger().OffDate()\n    lg.GetLogger().OffTime()\n    lg.GetLogger().OffShortFile()\n\n    lg.Info(\"Hello, world!\")\n}\n\n//...\n```\n\nor\n\n```go\npackage main\n\nimport \"github.com/bearatol/lg\"\n\nfunc init() {\n    lg.GetLogger().OffColor()\n    lg.GetLogger().OffPrefix()\n    lg.GetLogger().OffDate()\n    lg.GetLogger().OffTime()\n    lg.GetLogger().OffShortFile()\n}\n\nfunc main() {\n    lg.Info(\"Hello, world!\")\n}\n\n//...\n```\n\n[doc-img]: https://pkg.go.dev/badge/github.com/bearatol/lg\n[doc]: https://pkg.go.dev/github.com/bearatol/lg\n[ci-img]: https://github.com/bearatol/lg/actions/workflows/lg.yml/badge.svg\n[ci]: https://github.com/bearatol/lg/actions/workflows/lg.yml\n[report-img]: https://goreportcard.com/badge/github.com/bearatol/lg\n[report]: https://goreportcard.com/report/github.com/bearatol/lg\n[example-img]: https://user-images.githubusercontent.com/54537638/215755109-8b1b1a3a-4b54-4796-a868-c9b6613f72c9.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearatol%2Flg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbearatol%2Flg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearatol%2Flg/lists"}