{"id":25933321,"url":"https://github.com/robertwhurst/quil","last_synced_at":"2025-03-04T00:53:27.200Z","repository":{"id":57658228,"uuid":"105309130","full_name":"RobertWHurst/Quil","owner":"RobertWHurst","description":"A simple logger for Rust projects","archived":false,"fork":false,"pushed_at":"2017-11-23T06:32:08.000Z","size":28,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T18:38:47.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://docs.rs/quil","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobertWHurst.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-29T19:23:47.000Z","updated_at":"2023-03-04T03:32:04.000Z","dependencies_parsed_at":"2022-08-25T17:00:34.804Z","dependency_job_id":null,"html_url":"https://github.com/RobertWHurst/Quil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertWHurst%2FQuil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertWHurst%2FQuil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertWHurst%2FQuil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertWHurst%2FQuil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobertWHurst","download_url":"https://codeload.github.com/RobertWHurst/Quil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241763726,"owners_count":20016162,"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":[],"created_at":"2025-03-04T00:53:26.621Z","updated_at":"2025-03-04T00:53:27.195Z","avatar_url":"https://github.com/RobertWHurst.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Quil is a easy to use library that supports message levels, multiple\noutput targets, sub-loggers, and message contexts. Quil can be used across\nthreads safely, and is easy to extend.\n\n# Examples\n\nBasic example:\n\n```rust\nlet logger = Logger::new(Console::new(), context!{ src: \"root\" });\n\nlogger.info(\"hello world\");\n```\n\n```shell\nTue,  7 Nov 2017 23:55:42 +0000 - info:    hello world src=root\n```\n\nSub-context example:\n\n```rust\nlet logger = Logger::new(Console::new(), context!{ src: \"root\", tag: \"1\" });\nlogger.info(\"hello\");\n\nlet sub_logger = logger.ctx(context!{ tag: \"\", marker: \"49\" });\nlogger.info(\"world\");\n```\n\n```shell\nTue,  7 Nov 2017 23:55:42 +0000 - info:    hello src=root tag=1\nTue,  7 Nov 2017 23:55:42 +0000 - info:    world src=root marker=49\n```\n\nMulti-target example:\n\n```rust\nlet logger = Logger::new(targets![\n  Console::new(),\n  JsonFile::open(\"path/to/logfile.json\"),\n], context!{ some_meta_key: \"some_meta_value\" });\n\nlogger.info(\"hello\");\n\nlet sub_logger = logger.ctx(context!{ marker: \"49\" });\nlogger.warn(\"world\");\n```\n\n_Shell_:\n\n```shell\nTue,  7 Nov 2017 23:55:42 +0000 - info:    hello some_meta_key=some_meta_value\nTue,  7 Nov 2017 23:55:42 +0000 - warn:    world some_meta_key=some_meta_value marker=49\n```\n_Log File_:\n\n```json\n{ \"level\": \"info\", \"message\": \"hello\", \"context\": { \"some_meta_key\": \"some_meta_value\" } }\n{ \"level\": \"warn\", \"message\": \"world\", \"context\": { \"some_meta_key\": \"some_meta_value\", \"marker\": \"49\" } }\n```\n\nQuil is a easy to use library that supports message levels, multiple\ntargets, and message contexts. Quil is thread safe and so it is possible\nto send loggers accross threads.\n\n[Documentation](https://docs.rs/quil)\n\n# Examples\n\nBasic example:\n\n```rust\nlet logger = Logger::new(Console::new(), context!{ src: \"root\" });\n\nlogger.info(\"hello world\");\n```\n\n```shell\nTue,  7 Nov 2017 23:55:42 +0000 - info:    hello world src=root\n```\n\nSub-context example:\n\n```rust\nlet logger = Logger::new(Console::new(), context!{ src: \"root\", tag: \"1\" });\nlogger.info(\"hello\");\n\nlet sub_logger = logger.ctx(context!{ tag: \"\", marker: \"49\" });\nlogger.info(\"world\");\n```\n\n```shell\nTue,  7 Nov 2017 23:55:42 +0000 - info:    hello src=root tag=1\nTue,  7 Nov 2017 23:55:42 +0000 - info:    world src=root marker=49\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertwhurst%2Fquil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertwhurst%2Fquil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertwhurst%2Fquil/lists"}