{"id":34652877,"url":"https://github.com/obervinov/logger-package","last_synced_at":"2026-06-01T07:04:08.258Z","repository":{"id":62612696,"uuid":"561019031","full_name":"obervinov/logger-package","owner":"obervinov","description":"This module is designed to quickly initialize and configure readable and structured logging for my python projects.","archived":false,"fork":false,"pushed_at":"2025-12-23T21:37:05.000Z","size":136,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T07:37:48.958Z","etag":null,"topics":["log","logger","logging","logs","module","poetry","poetry-python","python-module","python-modules","python3"],"latest_commit_sha":null,"homepage":"","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/obervinov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-02T19:07:10.000Z","updated_at":"2025-12-23T21:37:09.000Z","dependencies_parsed_at":"2026-04-01T14:01:37.763Z","dependency_job_id":null,"html_url":"https://github.com/obervinov/logger-package","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/obervinov/logger-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obervinov%2Flogger-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obervinov%2Flogger-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obervinov%2Flogger-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obervinov%2Flogger-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obervinov","download_url":"https://codeload.github.com/obervinov/logger-package/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obervinov%2Flogger-package/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33763681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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":["log","logger","logging","logs","module","poetry","poetry-python","python-module","python-modules","python3"],"created_at":"2025-12-24T17:58:30.415Z","updated_at":"2026-06-01T07:04:08.253Z","avatar_url":"https://github.com/obervinov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logger Package\n[![Release](https://github.com/obervinov/logger-package/actions/workflows/release.yaml/badge.svg)](https://github.com/obervinov/logger-package/actions/workflows/release.yaml)\n[![CodeQL](https://github.com/obervinov/logger-package/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/obervinov/logger-package/actions/workflows/github-code-scanning/codeql)\n[![PR](https://github.com/obervinov/logger-package/actions/workflows/pr.yaml/badge.svg?branch=main\u0026event=pull_request)](https://github.com/obervinov/logger-package/actions/workflows/pr.yaml)\n\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/obervinov/logger-package?style=for-the-badge)\n![GitHub last commit](https://img.shields.io/github/last-commit/obervinov/logger-package?style=for-the-badge)\n![GitHub Release Date](https://img.shields.io/github/release-date/obervinov/logger-package?style=for-the-badge)\n![GitHub issues](https://img.shields.io/github/issues/obervinov/logger-package?style=for-the-badge)\n![GitHub repo size](https://img.shields.io/github/repo-size/obervinov/logger-package?style=for-the-badge)\n\n## \u003cimg src=\"https://github.com/obervinov/_templates/blob/main/icons/book.png\" width=\"25\" title=\"about\"\u003e About this project\nThis is an additional implementation over the **logging** module.\n\nThis module is designed for fast initialization and configuration of readable and structured logging.\n\n\n## \u003cimg src=\"https://github.com/obervinov/_templates/blob/main/icons/requirements.png\" width=\"25\" title=\"functions\"\u003e Supported functions\n- Color selection depending on the logging level\n- Structured and formatted message for more informative\n- Loading the logger configuration and format from a environment variables\n\n## \u003cimg src=\"https://github.com/obervinov/_templates/blob/main/icons/stack2.png\" width=\"20\" title=\"install\"\u003e Installing with Poetry\n```bash\ntee -a pyproject.toml \u003c\u003cEOF\n[tool.poetry]\nname = myproject\"\nversion = \"1.0.0\"\n\n[tool.poetry.dependencies]\npython = \"^3.12\"\nlogger = { git = \"https://github.com/obervinov/logger-package.git\", tag = \"v2.0.4\" }\n\n[build-system]\nrequires = [\"poetry-core\"]\nbuild-backend = \"poetry.core.masonry.api\"\nEOF\n\npoetry install\n```\n\n## \u003cimg src=\"https://github.com/obervinov/_templates/blob/main/icons/config.png\" width=\"25\" title=\"usage\"\u003e Usage example\n### Environment variables\n| Name  | Description | Default value |\n| ------------------------ | ------------------------------------------------ | --------------------------------------------------------------------- |\n| `LOGGER_FORMAT` | A string with the event logging format | `[%(asctime)s] %(levelname)s [%(name)s.%(funcName)s:%(lineno)d] %(message)s` |\n| `LOGGER_LEVEL` | Event logging level: DEBUG, INFO, WARNING, ERROR, CRITICAL or NOT SET | `INFO` |\n| `LOGGER_DATE_FORMAT` | Date format in logging event output | `%d/%b/%Y %H:%M:%S` |\n\n### Examples\n#### Simple\n```python\n# Import module\nfrom logger import log\n\n# Examples\n# error message\nlog.error(f\"this error: {error}\")\n# warning message\nlog.warning(f\"this warning: {warn}\")\n# info message\nlog.info(f\"this info: {info}\")\n```\n\n#### With using class\n```python\n# Import module\nfrom logger import log\n\n# Add logger to class\nclass myproject:\n  def __init__(self):\n    self.log = create_logger(__name__, self.__class__.__name__)\n    self.log.info(\"Init my class\")\n\n  def warning(self):\n    self.log.warning(\"Warning\")\n\n  def error(self):\n    self.log.error(\"Critical error\")\n\n  def debug(self):\n    self.log.debug(\"Debug\")\n\nmp = myproject()\nmp.warning()\nmp.error()\nmp.debug()\n```\n\u003cimg src=\"doc/example.png\" width=\"1000\" title=\"example\"\u003e\n\n\n## \u003cimg src=\"https://github.com/obervinov/_templates/blob/main/icons/github-actions.png\" width=\"25\" title=\"github-actions\"\u003e GitHub Actions\n| Name  | Version |\n| ------------------------ | ----------- |\n| GitHub Actions Templates | [v2.1.1](https://github.com/obervinov/_templates/tree/v2.1.1) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobervinov%2Flogger-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobervinov%2Flogger-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobervinov%2Flogger-package/lists"}