{"id":24116207,"url":"https://github.com/aib/nice_logging","last_synced_at":"2026-05-25T16:34:20.159Z","repository":{"id":183170717,"uuid":"669728194","full_name":"aib/nice_logging","owner":"aib","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-12T17:38:51.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-24T05:30:31.925Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-23T08:29:07.000Z","updated_at":"2023-07-23T08:43:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc0c76b8-4a64-4b0a-99c9-e99dae5e906f","html_url":"https://github.com/aib/nice_logging","commit_stats":null,"previous_names":["aib/nice_logging"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/aib/nice_logging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aib%2Fnice_logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aib%2Fnice_logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aib%2Fnice_logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aib%2Fnice_logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aib","download_url":"https://codeload.github.com/aib/nice_logging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aib%2Fnice_logging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285995567,"owners_count":27267570,"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-11-23T02:00:06.149Z","response_time":135,"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-01-11T06:15:47.053Z","updated_at":"2025-11-23T18:02:00.475Z","avatar_url":"https://github.com/aib.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nice_logging\n\nSimple logging library that has colored and timestamped output by default. Can be used as a drop-in replacement.\n\n## Installation\n\n```pip install nice_logging```\n\n(Or just grab the .py file)\n\n## Usage\n\n```python\nimport nice_logging\nnice_logging.basicConfig(level=nice_logging.DEBUG)\nlogger = nice_logging.getLogger(__name__)\nlogger.info(\"Hello\")\n```\n```\n2023-07-23 11:27:33,571 [INFO ] [__main__] Hello\n```\n\nOr:\n\n```python\nimport nice_logging as logging\n```\n\n## Structured Logging\n\nnice_logging has support for rudimentary structured logging. If you use `getStructuredLogger` instead of `getLogger` (or instantiate a `StructuredLogger`), you will get a logger whose log functions take a single message, and any number of keyword arguments, which are aggregated in a single dict. The resulting `LogRecord` will have the attribute `structured` set to `True`, and `structured_data` to the dict.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faib%2Fnice_logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faib%2Fnice_logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faib%2Fnice_logging/lists"}