{"id":37203713,"url":"https://github.com/csimplestring/go-log","last_synced_at":"2026-01-14T23:29:29.110Z","repository":{"id":71828618,"uuid":"39374069","full_name":"csimplestring/go-log","owner":"csimplestring","description":"Go logging library","archived":false,"fork":true,"pushed_at":"2015-03-24T13:35:14.000Z","size":269,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T03:26:56.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"yieldr/go-log","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csimplestring.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":"2015-07-20T09:09:55.000Z","updated_at":"2015-07-20T09:09:55.000Z","dependencies_parsed_at":"2023-02-26T00:45:37.185Z","dependency_job_id":null,"html_url":"https://github.com/csimplestring/go-log","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/csimplestring/go-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimplestring%2Fgo-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimplestring%2Fgo-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimplestring%2Fgo-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimplestring%2Fgo-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csimplestring","download_url":"https://codeload.github.com/csimplestring/go-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csimplestring%2Fgo-log/sbom","scorecard":{"id":310941,"data":{"date":"2025-08-11","repo":{"name":"github.com/csimplestring/go-log","commit":"25e4a4d2d1a05c7b974ed5ae40675946f152a32b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"Code-Review","score":0,"reason":"Found 0/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":"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":-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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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-17T23:10:11.257Z","repository_id":71828618,"created_at":"2025-08-17T23:10:11.257Z","updated_at":"2025-08-17T23:10:11.257Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28438336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"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":"2026-01-14T23:29:28.410Z","updated_at":"2026-01-14T23:29:29.098Z","avatar_url":"https://github.com/csimplestring.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-log\n\nA simple logging library for Go, with powerful file handling and syslog support.\n\n### Examples\n\n#### Default\n\nThis example uses the default log to write messages to standard out:\n\n```go\npackage main\n\nimport (\n\t\"github.com/yieldr/go-log/log\"\n)\n\nfunc main() {\n\tlog.Info(\"Hello World.\")\n\tlog.Error(\"There's nothing more to this program.\")\n}\n```\n\n#### Using Sinks and Formats\n\n```go\n\npackage main\n\nimport (\n\t\"github.com/yieldr/go-log/log\"\n\t\"os\"\n)\n\nfunc main() {\n\tl := log.NewSimple(\n\t\tlog.WriterSink(os.Stderr,\n\t\t\t\"%s: %s[%d] %s\\n\",\n\t\t\t[]string{\"priority\", \"executable\", \"pid\", \"message\"}))\n\tl.Info(\"Here's a differently formatted log message.\")\n}\n```\n\n#### File Sink\n\nThis example buffers log messages in memory and writes the contents on disk every 30 seconds. Additionally the file handle is closed and reopened every hour, to release any resources held by the os. In addition to functions supported by `Sink`, this sink also allows the user to `Flush()`, `Reload()`, `Close()` and `Write(b []byte)`.\n\n```go\npackage main\n\nimport (\n\t\"github.com/yieldr/go-log/log\"\n\t\"os\"\n)\n\nfunc main() {\n\tsink, err := log.FileSink(\"/var/log/app.log\", log.BasicFormat, log.BasicFields)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer sink.Close()\n\tlogger := log.NewSimple(sink)\n\tlogger.Info(\"This will be buffered and eventually written to file.\")\n}\n```\n\n#### Syslog Sink\n\nThis example logs messages to the systems log daemon.\n\n```go\npackage main\n\nimport (\n\t\"github.com/yieldr/go-log/log\"\n\t\"os\"\n)\n\nfunc main() {\n\tsyslog, err := log.SyslogSink(log.PriDebug, log.BasicFormat, log.BasicFields)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tlogger := log.NewSimple(syslog)\n\tlogger.Info(\"This will be logged to syslog\")\n}\n```\n\n### Fields\n\nThe following fields are available for use in all sinks:\n\n```go\n\"prefix\"       string              // static field available to all sinks\n\"seq\"          uint64              // auto-incrementing sequence number\n\"start_time\"   time.Time           // start time of the log\n\"time\"         string              // formatted time of log entry\n\"full_time\"    time.Time           // time of log entry\n\"rtime\"        time.Duration       // relative time of log entry since started\n\"pid\"          int                 // process id\n\"executable\"   string              // executable filename\n```\n\nIn addition, if `verbose=true` is passed to `New()`, the following (somewhat expensive) runtime fields are also available:\n\n```go\n\"funcname\"     string              // function name where the log function was called\n\"lineno\"       int                 // line number where the log function was called\n\"pathname\"     string              // full pathname of caller\n\"filename\"     string              // filename of caller\n```\n\n### Logging functions\n\nAll these functions can also be called directly to use the default log.\n\n```go\nfunc (*Logger) Log(priority Priority, v ...interface)\nfunc (*Logger) Logf(priority Priority, format string, v ...interface{})\nfunc (*Logger) Emergency(v ...interface)\nfunc (*Logger) Emergencyf(format string, v ...interface{})\nfunc (*Logger) Alert(v ...interface)\nfunc (*Logger) Alertf(format string, v ...interface{})\nfunc (*Logger) Critical(v ...interface)\nfunc (*Logger) Criticalf(format string, v ...interface{})\nfunc (*Logger) Error(v ...interface)\nfunc (*Logger) Errorf(format string, v ...interface{})\nfunc (*Logger) Warning(v ...interface)\nfunc (*Logger) Warningf(format string, v ...interface{})\nfunc (*Logger) Notice(v ...interface)\nfunc (*Logger) Noticef(format string, v ...interface{})\nfunc (*Logger) Info(v ...interface)\nfunc (*Logger) Infof(format string, v ...interface{})\nfunc (*Logger) Debug(v ...interface)\nfunc (*Logger) Debugf(format string, v ...interface{})\n```\n\n### Acknowledgements\n\nThis package is a fork of [coreos/go-log](https://github.com/coreos/go-log), which in turn is inspired by [ccding/go-logging](https://github.com/ccding/go-logging).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsimplestring%2Fgo-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsimplestring%2Fgo-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsimplestring%2Fgo-log/lists"}