{"id":24012701,"url":"https://github.com/redthing1/minlog_python","last_synced_at":"2026-02-18T11:03:17.278Z","repository":{"id":269899201,"uuid":"894738845","full_name":"redthing1/minlog_python","owner":"redthing1","description":"a neat and simple minimalistic logging library for python","archived":false,"fork":false,"pushed_at":"2025-03-26T22:27:14.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-07T05:31:21.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/redthing1.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":"2024-11-26T22:38:25.000Z","updated_at":"2025-04-14T03:56:21.000Z","dependencies_parsed_at":"2025-04-15T07:35:24.352Z","dependency_job_id":null,"html_url":"https://github.com/redthing1/minlog_python","commit_stats":null,"previous_names":["redthing1/minlog_python"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/redthing1/minlog_python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redthing1%2Fminlog_python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redthing1%2Fminlog_python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redthing1%2Fminlog_python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redthing1%2Fminlog_python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redthing1","download_url":"https://codeload.github.com/redthing1/minlog_python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redthing1%2Fminlog_python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29576868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-01-08T06:07:20.231Z","updated_at":"2026-02-18T11:03:17.263Z","avatar_url":"https://github.com/redthing1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minlog\n\na neat and simple minimalistic logging library for python.\n\n## installation\n\n```bash\npip install minlog\n```\n\n## usage\n\n```python\nfrom minlog import Logger\n\n# create a logger instance\nmy_logger = Logger()\n\n# or use the global logger instance\nfrom minlog import logger\nmy_logger = logger.logger_for(\"stuff\")\n\n# log messages with different severity levels\nlogger.debug(\"debugging info\")\nlogger.trace(\"trace message\")\nlogger.info(\"general information\")\nlogger.warn(\"warning message\")\nlogger.error(\"error condition\")\nlogger.crit(\"critical failure\")\n```\n\n## controlling verbosity\n\n```python\n# show only errors and critical messages\nlogger.be_quiet()\n\n# show all messages including debug and trace\nlogger.be_verbose()\n\n# show messages at debug level\nlogger.be_debug()\n\n# temporarily change verbosity using context manager\nwith logger.verbosity(Verbosity.DEBUG):\n    logger.debug(\"this will be shown\")\n    logger.trace(\"this too\")\n\n# conditional logging based on verbosity\nif logger.is_verbosity_above(Verbosity.ERROR):\n    logger.error(\"this will only show in verbose modes\")\n```\n\n## source logging\n\norganize logs by source/context:\n\n```python\n# create loggers for different components\napp_logger = logger.logger_for(\"app\")\ndb_logger = logger.logger_for(\"db\")\n\napp_logger.info(\"message from application\")\ndb_logger.warn(\"database warning\")\n\n# temporary subsource context\nwith logger.subsource(\"api\"):\n    logger.info(\"message with api context\")\n```\n\n## class decoration\n\nautomatically add logging to classes:\n\n```python\nfrom minlog import logged\n\n@logged  # uses class name as source\nclass MyClass:\n    def do_something(self):\n        self.logger.info(\"doing something\")\n\n@logged(\"custom_source\")  # specify custom source\nclass MyOtherClass:\n    def do_something(self):\n        self.logger.info(\"doing something else\")\n```\n\n## advanced features\n\n```python\n# force a message regardless of verbosity\nlogger.force_log(\"important message\")\n\n# conditional logging based on verbosity threshold\nlogger.log_only_when_quieter_than(\"debug info\", Verbosity.DEBUG)\n\n# multi-line messages are supported\nlogger.info(\"line one\\nline two\")\n\n# rich text formatting characters are handled correctly\nlogger.info(\"message with [brackets]\")\nlogger.info(\"message with [red]color[/red]\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredthing1%2Fminlog_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredthing1%2Fminlog_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredthing1%2Fminlog_python/lists"}