{"id":22846265,"url":"https://github.com/borntyping/rust-simple_logger","last_synced_at":"2026-02-18T04:05:58.711Z","repository":{"id":27751130,"uuid":"31239124","full_name":"borntyping/rust-simple_logger","owner":"borntyping","description":"A rust logger that prints all messages with a readable output format.","archived":false,"fork":false,"pushed_at":"2025-10-15T11:38:44.000Z","size":136,"stargazers_count":245,"open_issues_count":4,"forks_count":51,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-16T04:47:09.943Z","etag":null,"topics":["logging","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/simple_logger","language":"Rust","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/borntyping.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":"2015-02-24T01:14:44.000Z","updated_at":"2025-10-15T11:38:48.000Z","dependencies_parsed_at":"2024-06-18T17:12:47.914Z","dependency_job_id":null,"html_url":"https://github.com/borntyping/rust-simple_logger","commit_stats":{"total_commits":183,"total_committers":37,"mean_commits":4.945945945945946,"dds":0.360655737704918,"last_synced_commit":"fb96a82c274f92eff417904e6e819f25f3b51ccc"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/borntyping/rust-simple_logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borntyping%2Frust-simple_logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borntyping%2Frust-simple_logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borntyping%2Frust-simple_logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borntyping%2Frust-simple_logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borntyping","download_url":"https://codeload.github.com/borntyping/rust-simple_logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borntyping%2Frust-simple_logger/sbom","scorecard":{"id":248513,"data":{"date":"2025-08-11","repo":{"name":"github.com/borntyping/rust-simple_logger","commit":"fb96a82c274f92eff417904e6e819f25f3b51ccc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.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":2,"reason":"Found 5/23 approved changesets -- score normalized to 2","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.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/ci.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/borntyping/rust-simple_logger/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/borntyping/rust-simple_logger/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/borntyping/rust-simple_logger/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/borntyping/rust-simple_logger/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:85: update your workflow using https://app.stepsecurity.io/secureworkflow/borntyping/rust-simple_logger/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/borntyping/rust-simple_logger/ci.yml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 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":"Maintained","score":0,"reason":"0 commit(s) and 1 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":"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":"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/ci.yml:78"],"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 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-17T08:03:10.960Z","repository_id":27751130,"created_at":"2025-08-17T08:03:10.961Z","updated_at":"2025-08-17T08:03:10.961Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29567617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T00:47:08.760Z","status":"online","status_checked_at":"2026-02-18T02:00:09.468Z","response_time":162,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["logging","rust"],"created_at":"2024-12-13T03:26:54.904Z","updated_at":"2026-02-18T04:05:53.697Z","avatar_url":"https://github.com/borntyping.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple_logger [![](https://img.shields.io/github/tag/borntyping/rust-simple_logger.svg)](https://github.com/borntyping/rust-simple_logger/tags)\n\nA logger that prints all messages with a readable output format.\n\nThe output format is based on the format used by [Supervisord](https://github.com/Supervisor/supervisor), with timestamps in [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339) format.\n\nThe format and timezone used for timestamps can be customised, simple colours based on log level can be enabled, thread metadata can be included, and output can be toggled between STDOUT and STDERR. \n\n* [Source on GitHub](https://github.com/borntyping/rust-simple_logger)\n* [Packages on Crates.io](https://crates.io/crates/simple_logger)\n* [Documentation on Docs.rs](https://docs.rs/simple_logger)\n\nNotices\n-------\n\n### Project status\n\nI wrote the initial version of this library in 2015, and haven't written Rust professionally since then.\nI consider this as close as I'll ever get to a \"finished\" project and don't plan on adding any more features to it.\n\nIt is still maintained and I try and merge pull requests for fixes, improvements, and features; though I generally turn down pull requests for large or complex features that go outside the library's aim to be a simple logger.\nIf you need more, the `log` module has a list of [available logging implementations](https://docs.rs/log/latest/log/#available-logging-implementations), or you could consider forking `simple_logger` and building on top of it.\n\n### Breaking changes\n\n- **Version 2.0.0 changes the default from displaying timestamps in the local timezone to displaying timestamps in UTC.** See issue [#52](https://github.com/borntyping/rust-simple_logger/issues/52) for more information.\n\nUsage\n-----\n\n```rust\nuse simple_logger::SimpleLogger;\n\nfn main() {\n    SimpleLogger::new().init().unwrap();\n\n    log::warn!(\"This is an example message.\");\n}\n```\n\nThis outputs:\n\n```txt\n2022-01-19T17:27:07.013874956Z WARN [logging_example] This is an example message.\n```\n\nYou can run the above example with:\n\n```sh\ncargo run --example init\n```\n\n### Optional features\n\nThe `colors` and `timestamps` features are enabled by default. You can remove these\nfeatures and their respective dependencies by disabling all features in your\n`Cargo.toml`.\n\n```toml\n[dependencies.simple_logger]\ndefault-features = false\n```\n\nTo include the `timestamps` feature, but not the `colors` feature:\n\n```toml\n[dependencies.simple_logger]\ndefault-features = false\nfeatures = [\"timestamps\"]\n```\n\nTo include the `colors` feature, but not the `timestamps` feature:\n\n```toml\n[dependencies.simple_logger]\ndefault-features = false\nfeatures = [\"colors\"]\n```\n\nTo include thread metadata use the `threads` and `nightly` features:\n\n```toml\n[dependencies.simple_logger]\nfeatures = [\"threads\", \"nightly\"]\n```\n\nTo direct logging output to `stderr` use the `stderr` feature:\n\n```toml\n[dependencies.simple_logger]\nfeatures = [\"stderr\"]\n```\n\nMultiple features can be combined.\n\n```toml\n[dependencies.simple_logger]\nfeatures = [\"colors\", \"threads\", \"timestamps\", \"nightly\", \"stderr\"]\n```\n\n### Wrapping with another logger\n\nYou might want to wrap this logger to do your own processing before handing events to a SimpleLogger instance. Instead\nof calling `init()` which calls `log::set_max_level` and `log::set_boxed_logger`, you can call those functions directly\ngiving you the chance to wrap or adjust the logger. See [wrap.rs](examples/wrap.rs) for a more detailed example.\n\n### Console setup\n\nThe `SimpleLogger.init()` function attempts to configure colours support as best it can in various situations:\n\n- On Windows, it will enable colour output. _See `set_up_windows_color_terminal()`._\n- When using the `colors` *and* `stderr` features, it will instruct the `colored` library to display colors if STDERR\n  is a terminal (instead of checking if STDOUT is a terminal). _See `use_stderr_for_colors()`._\n\nLicence\n-------\n\n`simple_logger` is licenced under the [MIT Licence](http://opensource.org/licenses/MIT).\n\nAuthors\n-------\n\nWritten by [Sam Clements](sam@borntyping.co.uk).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborntyping%2Frust-simple_logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborntyping%2Frust-simple_logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborntyping%2Frust-simple_logger/lists"}