{"id":15714325,"url":"https://github.com/albertnieto/qcml-logging","last_synced_at":"2025-05-12T21:28:50.164Z","repository":{"id":253466501,"uuid":"843589696","full_name":"albertnieto/qcml-logging","owner":"albertnieto","description":"A Python library for advanced logging with support for multiple outputs and Slack integration. Designed for QCML.","archived":false,"fork":false,"pushed_at":"2024-08-16T23:04:11.000Z","size":28,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-02T13:42:17.633Z","etag":null,"topics":["logging-library","python","slack"],"latest_commit_sha":null,"homepage":"","language":"Python","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/albertnieto.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":"2024-08-16T21:21:29.000Z","updated_at":"2024-10-03T07:37:51.000Z","dependencies_parsed_at":"2024-10-24T11:58:21.458Z","dependency_job_id":"a0e9f6bf-4e38-41a7-a7ee-cd033a483a47","html_url":"https://github.com/albertnieto/qcml-logging","commit_stats":null,"previous_names":["albertnieto/qcml-logging"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertnieto%2Fqcml-logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertnieto%2Fqcml-logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertnieto%2Fqcml-logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertnieto%2Fqcml-logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertnieto","download_url":"https://codeload.github.com/albertnieto/qcml-logging/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223835371,"owners_count":17211158,"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":["logging-library","python","slack"],"created_at":"2024-10-03T21:36:11.731Z","updated_at":"2024-11-09T14:02:51.373Z","avatar_url":"https://github.com/albertnieto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QCML Logging Library\n\nQCML Logging is a Python library that provides advanced logging setup with support for multiple outputs (terminal, file) and Slack integration. It includes features like color-coded logs, JSON formatting, and contextual information.\n\n## Installation\n\nYou can install the library using pip:\n\n```bash\npip install qcml-logging\n```\n\n## Usage\n\nHere’s an example of how to set up logging:\n\n```python\nimport qcml_logging\n\ncontext_info = {\n    'user_id': '12345',\n    'session_id': 'abcde'\n}\n\nslack_credentials = [\"your-slack-token\", \"#your-channel\"]\n\nqcml_logging.log_setup(\n    level=\"DEBUG\",\n    output=\"both\",\n    logs_path=\"my_logs\",\n    use_json=False,\n    keyword_filters=[\"error\", \"critical\"],\n    use_color=True,\n    asynchronous=True,\n    add_context=True,\n    context_info=context_info,\n    slack_notify=True,\n    slack_credentials=slack_credentials\n)\n\nlogging.debug(\"This is a debug message.\")\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertnieto%2Fqcml-logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertnieto%2Fqcml-logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertnieto%2Fqcml-logging/lists"}