{"id":13439765,"url":"https://github.com/slog-rs/slog","last_synced_at":"2025-04-29T14:20:17.233Z","repository":{"id":9137860,"uuid":"60992052","full_name":"slog-rs/slog","owner":"slog-rs","description":"Structured, contextual, extensible, composable logging for Rust","archived":false,"fork":false,"pushed_at":"2024-09-23T17:36:41.000Z","size":16485,"stargazers_count":1632,"open_issues_count":57,"forks_count":96,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-25T11:00:46.074Z","etag":null,"topics":["contextual","ecosystem","hierarchical-loggers","logging","logging-library","rust","slog-rs","structured-logging"],"latest_commit_sha":null,"homepage":"https://slog.rs/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slog-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2016-06-12T22:20:18.000Z","updated_at":"2025-04-21T16:32:03.000Z","dependencies_parsed_at":"2023-01-13T15:11:26.672Z","dependency_job_id":"d12888b6-e74b-4660-9424-2ff03828e0d9","html_url":"https://github.com/slog-rs/slog","commit_stats":{"total_commits":702,"total_committers":56,"mean_commits":"12.535714285714286","dds":"0.23361823361823364","last_synced_commit":"4524d0a56933a499aab0489aa06a67f67f11a175"},"previous_names":["dpc/slog-rs"],"tags_count":61,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slog-rs%2Fslog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slog-rs%2Fslog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slog-rs%2Fslog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slog-rs%2Fslog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slog-rs","download_url":"https://codeload.github.com/slog-rs/slog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251516953,"owners_count":21601912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["contextual","ecosystem","hierarchical-loggers","logging","logging-library","rust","slog-rs","structured-logging"],"created_at":"2024-07-31T03:01:16.928Z","updated_at":"2025-04-29T14:20:17.216Z","avatar_url":"https://github.com/slog-rs.png","language":"Rust","readme":"\u003cp align=\"center\"\u003e\n\n  \u003ca href=\"https://github.com/slog-rs/slog\"\u003e\n  \u003cimg src=\"https://cdn.rawgit.com/slog-rs/misc/master/media/slog.svg\" alt=\"slog-rs logo\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n\n  \u003ca href=\"https://github.com/slog-rs/slog/actions/workflows/test.yml\"\u003e\n      \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/slog-rs/slog/test.yml?branch=master\" alt=\"GH Actions (Cargo Test)\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://crates.io/crates/slog\"\u003e\n      \u003cimg src=\"https://img.shields.io/crates/d/slog.svg\" alt=\"slog-rs on crates.io\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://gitter.im/slog-rs/slog\"\u003e\n      \u003cimg src=\"https://img.shields.io/gitter/room/slog-rs/slog.svg\" alt=\"slog-rs Gitter Chat\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://docs.rs/releases/search?query=slog-\"\u003e\n      \u003cimg src=\"https://docs.rs/slog/badge.svg\" alt=\"docs-rs: release versions documentation\"\u003e\n  \u003c/a\u003e\n  \u003c!-- Badge showing our Minimum Supported Rust Version, along with a link to the release announcement on the official blog --\u003e\n  \u003ca href=\"https://blog.rust-lang.org/2020/12/31/Rust-1.49.0.html\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/rust-1.49%2B-orange.svg\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n    \u003cstrong\u003e\u003ca href=\"https://github.com/slog-rs/slog/wiki/Getting-started\"\u003eGetting started\u003c/a\u003e\u003c/strong\u003e\n  \u003ca href=\"//github.com/slog-rs/slog/wiki/Introduction-to-structured-logging-with-slog\"\u003eIntroduction\u003c/a\u003e\n  \u003ca href=\"//github.com/slog-rs/slog/wiki/FAQ\"\u003eFAQ\u003c/a\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://crates.io/search?q=slog\"\u003eCrate list\u003c/a\u003e\n\u003c/p\u003e\n\n# slog-rs - The Logging for [Rust][rust]\n\n### You might consider using `tracing` instead\n\nIt's been a while since `slog` was created and it served\nRust community well all this time. It remains a stable, featureful\nand battle-tested library, used in many important projects.\n\nIn last few years,\nanother ecosystem for Rust was\ncreated with similar features and a very good support for debugging `async` code\nand already larger dev team and community.\n\nPlease check [tracing](https://github.com/tokio-rs/tracing) and see\nif it is more suitable for your use-case. It seems that it is already\na go-to logging/tracing solution for Rust.\n\nReasons you might want to stick with `slog` anyway:\n\n* `async` support doesn't benefit you\n* you consider mature, stable code \u0026 API a plus\n* it has some features that `tracing` is missing\n* great performance (I have NOT done any comparison, but `slog`'s performance\n  is very good).\n\n### Introduction (please read)\n\n`slog` is an ecosystem of reusable components for structured, extensible,\ncomposable and contextual logging for [Rust][rust].\n\nThe ambition is to be The Logging Library for Rust. `slog` should accommodate a\nvariety of logging features and requirements. If there is a feature that you\nneed and standard `log` crate is missing, `slog` should have it.\n\nThis power comes with a little steeper learning curve, so if you experience any\nproblems, **please join [slog-rs gitter] channel** to get up to speed. If you'd\nlike to take a quick, convenient route, consider using\n[sloggers](https://docs.rs/sloggers/) wrapper library.\n\nWhile the code is reliable, the documentation sometimes could use an improvement.\nPlease report all issues and ideas.\n\n### Features \u0026 technical documentation\n\nMost of the interesting documentation is auto-generated and hosted on [https://docs.rs](https://docs.rs/slog/).\n\nGo to [docs.rs/slog](https://docs.rs/slog/) to read about features and APIs\n(examples included).\n\n**Note**: `slog` is just a core, and the actual functionality is inside\nmany feature crates. To name a few:\n\n* [slog-term](https://docs.rs/slog-term/) for terminal output\n* [slog-async](https://docs.rs/slog-async/) for asynchronous logging\n* [slog-json](https://docs.rs/slog-json/) for logging JSON\n* [slog-syslog](https://docs.rs/slog-syslog/) for logging to syslog\n* [sloggers](https://docs.rs/sloggers/) for convenience methods (note: [3rd-party library](https://github.com/sile/sloggers))\n\nThere are many more slog feature crates. Search for [more slog features on\ncrates.io](https://crates.io/search?q=slog). It is easy to write and publish\nnew ones. Look through all the [existing crates using\nslog](https://crates.io/crates/slog/reverse_dependencies) for examples and ideas.\n\n### Terminal output example\n\n`slog-term` is only one of many `slog` features - useful showcase,\nmulti-platform, and featuring eg. automatic TTY detection and colors.\n\nSee following screenshot: same output in both compact and full output mode.\n\n![slog-rs terminal example output](http://i.imgur.com/mqrG8yL.png)\n\n## Using \u0026 help\n\nPlease use [slog-rs gitter] channel to ask for help or discuss\nslog features.\n\nSee\n[examples/features.rs](https://github.com/slog-rs/misc/blob/master/examples/features.rs)\nfor full quick code example overview.\n\nRead [Documentation](https://docs.rs/slog/) for details and features.\n\nTo report a bug or ask for features use [github issues][issues].\n\n[faq]: https://github.com/slog-rs/slog/wiki/FAQ\n[wiki]: https://github.com/slog-rs/slog/wiki/\n[rust]: http://rust-lang.org\n[slog-rs gitter]: https://gitter.im/slog-rs/slog\n[issues]: //github.com/slog-rs/slog/issues\n\n## Slog community\n\nSlog related crates are hosted under [slog github\norganization](https://github.com/slog-rs).\n\nDawid Ciężarkiewicz is the original author and current maintainer of `slog` and\ntherefore self-appointed benevolent dictator over the project. When working on\nslog Dawid follows and expects everyone to follow his [Code of\nConduct](https://github.com/dpc/public/blob/master/COC.md).\n\nAny particular repositories under slog ecosystem might be created, controlled,\nmaintained by other entities with various levels of autonomy. Lets work together\ntoward a common goal in a respectful and welcoming atmosphere!\n\n## Verification Recommendation\n\nTo help with the maintained, the ownership of this crate is potentially shared between multiple developers.\nIt is recommended to always use [cargo-crev](https://github.com/crev-dev/cargo-crev)\nto verify the trustworthiness of each of your dependencies, including this one.\n","funding_links":[],"categories":["Libraries","Rust","库 Libraries","库"],"sub_categories":["Logging","日志记录 Logging","日志","日志 Logging"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslog-rs%2Fslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslog-rs%2Fslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslog-rs%2Fslog/lists"}