{"id":18368513,"url":"https://github.com/slog-rs/html","last_synced_at":"2025-10-18T19:08:13.011Z","repository":{"id":57667676,"uuid":"78823783","full_name":"slog-rs/html","owner":"slog-rs","description":"Html formatter for slog-rs","archived":false,"fork":false,"pushed_at":"2017-02-04T10:27:07.000Z","size":22,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T18:07:53.206Z","etag":null,"topics":["formatter","html","logging","logging-library"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-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-MPL2","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-13T06:55:31.000Z","updated_at":"2023-07-25T14:06:32.000Z","dependencies_parsed_at":"2022-09-26T20:31:58.740Z","dependency_job_id":null,"html_url":"https://github.com/slog-rs/html","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slog-rs%2Fhtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slog-rs%2Fhtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slog-rs%2Fhtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slog-rs%2Fhtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slog-rs","download_url":"https://codeload.github.com/slog-rs/html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281418,"owners_count":21077423,"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":["formatter","html","logging","logging-library"],"created_at":"2024-11-05T23:26:10.900Z","updated_at":"2025-10-18T19:08:07.961Z","avatar_url":"https://github.com/slog-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\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://travis-ci.org/slog-rs/html\"\u003e\n      \u003cimg src=\"https://img.shields.io/travis/slog-rs/html/master.svg\" alt=\"Travis CI Build Status\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://ci.appveyor.com/project/slog-rs/html\"\u003e\n      \u003cimg src=\"https://ci.appveyor.com/api/projects/status/github/slog-rs/html?svg=true\" alt=\"AppVeyor Build Status\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://crates.io/crates/slog-html\"\u003e\n      \u003cimg src=\"https://img.shields.io/crates/v/slog-html.svg\" alt=\"slog-html 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/slog-html\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/documentation-docs.rs-df3600.svg\" alt=\"slog-html documentation\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# slog-html - HTML format for [slog-stream] of [slog-rs]\n\n[slog-rs]: //github.com/slog-rs/slog\n[slog-stream]: //github.com/slog-rs/stream\n\n## Example\n\n```rust\n#[macro_use]\nextern crate slog;\nextern crate slog_html;\nextern crate slog_stream;\n\nuse slog::DrainExt;\n\nuse std::fs::OpenOptions;\n\nfn main() {\n    let file = OpenOptions::new()\n        .create(true)\n        .write(true)\n        .truncate(true)\n        .open(\"target/log.html\").unwrap();\n\n    let log = slog::Logger::root(\n        slog_stream::stream(\n            file,\n            slog_html::default()\n        ).fuse(),\n        o!(\"version\" =\u003e env!(\"CARGO_PKG_VERSION\"))\n    );\n\n    debug!(log, \"debug values\"; \"x\" =\u003e 1, \"y\" =\u003e -1);\n}\n```\n\n## Rendered example output\n\n\u003cimg src=\"https://i.imgur.com/7xyv5Sg.png\" width=\"601\" height=\"130\" alt=\"slog-rs html full-format output\"\u003e\n\nCompact mode:\n\n\u003cimg src=\"https://i.imgur.com/Ur6g8Q4.png\" width=\"434\" height=\"349\" alt=\"slog-rs html compact output\"\u003e\n\nFull mode:\n\n\u003cimg src=\"https://i.imgur.com/mVvzYCN.png\" width=\"960\" height=\"230\" alt=\"slog-rs html full output\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslog-rs%2Fhtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslog-rs%2Fhtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslog-rs%2Fhtml/lists"}