{"id":16988649,"url":"https://github.com/rafaelrcamargo/logi","last_synced_at":"2025-06-27T22:36:14.676Z","repository":{"id":65405436,"uuid":"591767985","full_name":"rafaelrcamargo/logi","owner":"rafaelrcamargo","description":"A less boring logger - Modern, cool and nice looking logger for better DX on your CLI apps.","archived":false,"fork":false,"pushed_at":"2023-10-26T14:31:30.000Z","size":286,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T17:08:44.412Z","etag":null,"topics":["cli","crate","log","logging","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/logi","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/rafaelrcamargo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-21T19:59:19.000Z","updated_at":"2023-12-22T14:43:00.000Z","dependencies_parsed_at":"2025-04-12T04:02:33.668Z","dependency_job_id":"31b415f8-f12a-44c2-9314-8971ad95cc19","html_url":"https://github.com/rafaelrcamargo/logi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rafaelrcamargo/logi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrcamargo%2Flogi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrcamargo%2Flogi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrcamargo%2Flogi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrcamargo%2Flogi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaelrcamargo","download_url":"https://codeload.github.com/rafaelrcamargo/logi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelrcamargo%2Flogi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261015879,"owners_count":23097540,"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":["cli","crate","log","logging","rust"],"created_at":"2024-10-14T03:04:29.335Z","updated_at":"2025-06-27T22:36:14.651Z","avatar_url":"https://github.com/rafaelrcamargo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logi - A less boring logger\n\nA modern, cool and nice looking logger for better DX on your CLI apps.\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"./assets/logi.png\" alt=\"Logi example\" width=\"400px\" height=\"200px\"/\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n---\n\n\u003e [!NOTE]\n\u003e This library is a WIP. I do use this in some of my own projects so `main` should be stable.\n\n---\n\n\u003cbr/\u003e\n\n## Why?\n\nLog is a essential part of any CLI app. It's how you'll communicate with your users. And you don't want to flood them with useless information. You also need your logs to be easy to read and of easy recognizability. If the user has to rewind and think every time they see a log, it's not a good log.\n\nAnd of course, we want all of this without having to write a lot of code. We want something that's familiar and easy to use also for the developers.\n\nThis library was created to solve these problems. It's easy to use and it's easy to read.\n\n## How?\n\nIt uses a pattern of `hour:minute:second | icon type | message`. The icon is a emoji* that represents the type of log. The type is a 4-letter colored word that represents the type of log. And the message is the final log message colored to match the type.\n\n\u003cdetails\u003e\n\u003csummary\u003eFor the user:\u003c/summary\u003e\n\nThe user output is designed to be easy to read. It means it's easy to recognize the type of log and it's easy to read the message.\n\nExample:\n\n```md\n14:58:22 | 🔧 TRCE | Trace message.\n14:58:22 | 🔮 DBUG | Debug message.\n14:58:22 | 📰 INFO | Info message.\n14:58:22 | 🎉 YEEE | Success message.\n14:58:22 | 💡 WARN | Warn message.\n14:58:22 | 💥 F#CK | Error message.\n14:58:22 | 🧭 CSTM | Custom message.\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFor the developer:\u003c/summary\u003e\n\nThe developer API was designed to be familiar and easy to use. It means it's really close to the `std` Rust logger.\n\nExample:\n\n```rust\ntrace!(\"Trace message.\");           // 00:00:00 | 🔧 TRCE | Trace message.\ndebug!(\"Debug message.\");           // 00:00:00 | 🔮 DBUG | Debug message.\ninfo!(\"Info message.\");             // 00:00:00 | 📰 INFO | Info message.\nsuccess!(\"Success message.\");       // 00:00:00 | 🎉 YEEE | Success message.\nwarn!(\"Warn message.\");             // 00:00:00 | 💡 WARN | Warn message.\nerror!(\"Error message.\");           // 00:00:00 | 💥 F#CK | Error message.\ncustom!(\"🧭 CSTM\", \"Custom one.\");  // 20:39:24 | 🧭 CSTM | Custom message.\n```\n\n\u003c/details\u003e\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nlogi = \"x.x.x\" # Just replace `x.x.x` with the latest release.\n```\n\nAnd this to your main file:\n\n```rust\n#[macro_use]\nextern crate logi;\n```\n\n## License\n\nThis project is licensed under the Apache-2.0 license. See the [LICENSE](https://www.apache.org/licenses/LICENSE-2.0.txt) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelrcamargo%2Flogi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaelrcamargo%2Flogi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelrcamargo%2Flogi/lists"}