{"id":27334933,"url":"https://github.com/dmuth/google-go-log4go","last_synced_at":"2026-03-11T23:33:30.462Z","repository":{"id":8487586,"uuid":"10092497","full_name":"dmuth/google-go-log4go","owner":"dmuth","description":"A log4j analogue for GoLang.","archived":false,"fork":false,"pushed_at":"2020-09-03T22:21:47.000Z","size":108,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T14:51:29.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jpabico/phase_0_unit_1","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmuth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-16T02:57:09.000Z","updated_at":"2024-10-06T21:04:10.000Z","dependencies_parsed_at":"2022-09-19T17:02:04.826Z","dependency_job_id":null,"html_url":"https://github.com/dmuth/google-go-log4go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmuth/google-go-log4go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fgoogle-go-log4go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fgoogle-go-log4go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fgoogle-go-log4go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fgoogle-go-log4go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmuth","download_url":"https://codeload.github.com/dmuth/google-go-log4go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fgoogle-go-log4go/sbom","scorecard":{"id":348429,"data":{"date":"2025-08-11","repo":{"name":"github.com/dmuth/google-go-log4go","commit":"62b289e3b1aa5ce7ccc93ca574f020aa3136087e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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 1/30 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":"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":"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":"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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 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-18T07:43:53.555Z","repository_id":8487586,"created_at":"2025-08-18T07:43:53.555Z","updated_at":"2025-08-18T07:43:53.555Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30406977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T22:36:59.286Z","status":"ssl_error","status_checked_at":"2026-03-11T22:36:57.544Z","response_time":84,"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":"2025-04-12T14:46:40.480Z","updated_at":"2026-03-11T23:33:30.446Z","avatar_url":"https://github.com/dmuth.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introducing Log4go\n\nStill being new to Google Go, I wanted a logging facility.  I didn't \nhave much luck finding one, so I decided to write a quick and dirty\nimplementation of Log4j.\n\n### Installation\n\nInstallation is easy. First make sure you have your [GOPATH](http://golang.org/doc/code.html#GOPATH) setup properly. Then use `go get` to download and compile this package.\n\n    go get github.com/dmuth/google-go-log4go\n\nAlso, make sure your $GOPATH environment variable is set up properly: `export GOPATH=$HOME/golib` or similar\n\n### Usage\n\n    import log \"github.com/dmuth/google-go-log4go\"\n    \n    func main() {\n        log.SetLevel(log.DebugLevel)\n        log.SetDisplayTime(true)\n        log.Info(\"foobar\")\n        \n        //\n        // Strings work, too.\n        //\n        log.SetLevelString(\"info\")\n        log.Info(\"baz\")\n        \n        //\n        // Strings are even case-insensitive!\n        //\n        log.SetLevelString(\"INFO\")\n        log.Info(\"blurfl\")\n        \n        //\n        // I herd u liek Printf()\n        //\n        log.Infof(\"Number of widgets: %d\", 1001)\n        \n    }\n\nAnd you can expect to see output like this:\n\n![log4go screenshot](https://raw.github.com/dmuth/google-go-log4go/master/docs/log4go_screenshot.png)\n\n(Colored text is created with to Meng Zhang's excellent Terminal package: https://github.com/wsxiaoys/terminal)\n\n### Escaping malicious input\n\nIt was pointed out to me that if things like invalid logins, SQL \ninjection attempts, etc. are logged, an would-be attacker could pass in\nthe backspace character (ASCII 8) to \"hide\" output on a casual glance.\n\nThis package tries to protect against that by escaping anything with an\nASCII value of less than 32.  This includes carriage returns (ASCII 13)\nand newlines (ASCII 10).\n\nHere is an example of an attacker trying to use backspaces, and what \nthis module would print out instead:\n\n    ERROR: Failed login: BlackHat[0x08][0x08][0x08][0x08][0x08][0x08][0x08][0x08]WhiteHat\n\n\n### Testing\n\n`go test ./src/github.com/dmuth/google-go-log4go/`\n\nYou should see output like this:\n\n`ok      github.com/dmuth/google-go-log4go       0.009s`\n\n### Contact Me\n\nThis is my first ever Google Go package.  Chances are that I've done like over 9,000 things the wrong way.  Please drop me a line if you liked the package, thought it sucked, want to discuss the merits of velociraptors as housepets, or whatever.  \n\nMy email address is doug.muth@gmail.com.  Additional contact methods can be found at http://www.dmuth.org/contact  Thanks!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmuth%2Fgoogle-go-log4go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmuth%2Fgoogle-go-log4go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmuth%2Fgoogle-go-log4go/lists"}