{"id":16181358,"url":"https://github.com/ethereumdegen/degen-logger","last_synced_at":"2026-03-08T16:33:57.398Z","repository":{"id":183343606,"uuid":"669993514","full_name":"ethereumdegen/degen-logger","owner":"ethereumdegen","description":"Decent console logging in rust ","archived":false,"fork":false,"pushed_at":"2023-07-24T04:55:38.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-01T16:24:05.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ethereumdegen.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}},"created_at":"2023-07-24T04:05:08.000Z","updated_at":"2024-01-02T08:39:05.000Z","dependencies_parsed_at":"2023-09-04T06:15:54.336Z","dependency_job_id":null,"html_url":"https://github.com/ethereumdegen/degen-logger","commit_stats":null,"previous_names":["ethereumdegen/degen-logging"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ethereumdegen/degen-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereumdegen%2Fdegen-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereumdegen%2Fdegen-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereumdegen%2Fdegen-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereumdegen%2Fdegen-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethereumdegen","download_url":"https://codeload.github.com/ethereumdegen/degen-logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereumdegen%2Fdegen-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27683990,"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-12-12T02:00:06.775Z","response_time":129,"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":"2024-10-10T06:24:46.922Z","updated_at":"2025-12-12T13:41:49.494Z","avatar_url":"https://github.com/ethereumdegen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n## Degen Logger \n\n\nLogging utility for rust console \n\n\n```\ncargo add degen-logger \n```\n\n## Overview \n\nSick and tired of constantly editing your println!() statements in your code?  Degen Logger is here to save you.  Simply define a custom enum in your code like this (probably off in some library/util folder) : \n\n```\n\n\n\nenum CustomLogStyle {\n    \n    Warn,\n    Error,\n    Hidden\n    \n} \n\n\nimpl degen_logger::DegenLogStyle for CustomLogStyle {\n    \n    fn bold(\u0026self) -\u003e bool {\n        match self {\n            Self::Warn =\u003e true ,\n            Self::Error =\u003e false ,\n            Self::Hidden =\u003e false \n        }\n    }\n    \n     fn show(\u0026self) -\u003e  bool {\n        match self {\n            Self::Warn =\u003e true ,\n            Self::Error =\u003e true ,\n            Self::Hidden =\u003e false \n        }\n    }\n    \n    fn get_log_color( \u0026self ) -\u003e degen_logger::LogColor {\n       \n         \n          match self {\n            Self::Warn =\u003e   degen_logger::LogColor::Blue ,\n            Self::Error =\u003e   degen_logger::LogColor::Red ,\n            Self::Hidden =\u003e   degen_logger::LogColor::Black \n        }\n     }\n    \n}\n\n\n```\n\nThen, in your code, log with that style like so: \n\n```\n degen_logger::log(   format!(\"Listening on: {}\", \"localhost\".to_string()), CustomLogStyle::Warn  );\n    \n    \n```\n\n\nNow all of your log statements have a CustomLogStyle.  You can edit the implemented functions of this style in order to show/hide the messages of that style, change their print color, and determine boldness.  \n\n\n\n### Example usage \n\nSee main.rs \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethereumdegen%2Fdegen-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethereumdegen%2Fdegen-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethereumdegen%2Fdegen-logger/lists"}