{"id":25693662,"url":"https://github.com/passcod/lloggs","last_synced_at":"2025-08-02T20:04:44.069Z","repository":{"id":275509645,"uuid":"926288445","full_name":"passcod/lloggs","owner":"passcod","description":"Logging configuration for clap applications","archived":false,"fork":false,"pushed_at":"2025-04-29T00:12:35.000Z","size":37,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T08:28:14.114Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/passcod.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2025-02-03T00:58:29.000Z","updated_at":"2025-04-19T04:31:39.000Z","dependencies_parsed_at":"2025-02-03T02:18:46.871Z","dependency_job_id":"4a5c90c2-abce-4245-b974-e0c0b9e9c52e","html_url":"https://github.com/passcod/lloggs","commit_stats":null,"previous_names":["passcod/lloggs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/passcod/lloggs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passcod%2Flloggs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passcod%2Flloggs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passcod%2Flloggs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passcod%2Flloggs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/passcod","download_url":"https://codeload.github.com/passcod/lloggs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passcod%2Flloggs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448175,"owners_count":24251994,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2025-02-24T23:46:42.249Z","updated_at":"2025-08-02T20:04:43.930Z","avatar_url":"https://github.com/passcod.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lloggs\n\nLogging configuration for [clap](https://docs.rs/clap) applications.\n\nThis library provides a common set of flags for controlling logging in a CLI application, and\na default implementation for configuring logging based on those flags using non-blocking\n[tracing-subscriber](https://docs.rs/tracing-subscriber) when the `tracing` feature is enabled\n(which is the default).\n\nIt also supports configuring logging before parsing arguments, to allow logging to be set up\nusing environment variables such as `RUST_LOG` or `DEBUG_INVOCATION`, respects the `NO_COLOR`\nenvironment variable (\u003chttps://no-color.org\u003e), and adjusts defaults when it detects systemd.\n\n- **[API documentation](https://docs.rs/lloggs)**.\n- Licensed under [Apache 2.0](./LICENSE-APACHE) or [MIT](./LICENSE-MIT).\n\n# Example\n\n```rust\nuse lloggs::{LoggingArgs, PreArgs};\nuse clap::Parser;\n\n#[derive(Debug, Parser)]\nstruct Args {\n    #[command(flatten)]\n    logging: LoggingArgs,\n\n    // Your other arguments here\n}\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error + Send + Sync\u003e\u003e {\n    let mut _guard = PreArgs::parse().setup()?;\n    let args = Args::parse();\n    if _guard.is_none() {\n        _guard = Some(args.logging.setup(|v| match v {\n            0 =\u003e \"info\",\n            1 =\u003e \"debug\",\n            _ =\u003e \"trace\",\n        })?);\n    }\n\n    // Your application logic here\n\n    Ok(())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasscod%2Flloggs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpasscod%2Flloggs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasscod%2Flloggs/lists"}