{"id":28419946,"url":"https://github.com/afxentios/config-logger","last_synced_at":"2026-05-04T12:37:39.758Z","repository":{"id":62564400,"uuid":"80500258","full_name":"afxentios/config-logger","owner":"afxentios","description":"A simple configurable logger for python projects","archived":false,"fork":false,"pushed_at":"2018-10-27T19:30:41.000Z","size":17,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T01:59:53.493Z","etag":null,"topics":["configuration","json","logging","python","yaml"],"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/afxentios.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-31T07:36:08.000Z","updated_at":"2018-12-20T05:35:26.000Z","dependencies_parsed_at":"2022-11-03T16:00:39.398Z","dependency_job_id":null,"html_url":"https://github.com/afxentios/config-logger","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/afxentios/config-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afxentios%2Fconfig-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afxentios%2Fconfig-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afxentios%2Fconfig-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afxentios%2Fconfig-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afxentios","download_url":"https://codeload.github.com/afxentios/config-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afxentios%2Fconfig-logger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262444704,"owners_count":23312209,"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":["configuration","json","logging","python","yaml"],"created_at":"2025-06-04T22:41:37.416Z","updated_at":"2026-05-04T12:37:39.718Z","avatar_url":"https://github.com/afxentios.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"config-logger: Configurable and flexible logger for your python applications\n============================================================================\n\nBuild Status\n------------\n\n|travis status| |coverage| |health|\n\nProject details\n---------------\n\n|license| |pypi|\n\n.. |travis status| image:: https://travis-ci.org/afxentios/config-logger.svg?branch=master\n   :target: https://travis-ci.org/afxentios/config-logger\n   :alt: Travis-CI build status\n.. |coverage| image:: https://coveralls.io/repos/github/afxentios/config-logger/badge.svg\n   :target: https://coveralls.io/github/afxentios/config-logger\n   :alt: Code Coverage\n.. |health| image:: https://landscape.io/github/afxentios/config-logger/master/landscape.svg?style=flat\n   :target: https://landscape.io/github/afxentios/config-logger/master\n   :alt: Code Health\n.. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg\n   :target: https://github.com/afxentios/config-logger/blob/master/LICENSE.txt\n   :alt: License\n.. |pypi| image:: https://badge.fury.io/py/config-logger.svg\n   :target: https://badge.fury.io/py/config-logger\n   :alt: Pypi Version\n\n\nDescription\n-----------\n\nThe **config-logger** package is a basic configurable logger. It reads the configuration data for the logging from an\nexternal YAML, JSON file or from a given python dictionary and validates it. The contents of this dictionary are\ndescribed in `Configuration dictionary schema`_. This package is currently tested on Python 2.7.\n\n- `Issue tracker`_\n- `Changelog`_\n\n\nInstallation\n------------\n\n::\n\n    pip install config-logger\n\nor\n\ndownload the `latest release`_ and run\n\n::\n\n    python setup.py install\n\n\nUsage\n-----\n\nConfigured from external .yaml or .json file\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    #logging.yaml contains the configuration data which defines the logging in your project\n\n    from config_logger import Logger\n    logger = Logger(name='my_logger', cfg_path='/path/to/logging.yaml')\n    logger.info(\"This will be written in a file called info.log\")\n\n**Console Output**\n\n::\n\n    2017-01-31 12:20:32,693 - my_logger - INFO - This will be written in a file called info.log\n\nConfigured from dictionary\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    log_config = {\n        'version': 1,\n        'disable_existing_loggers': False,\n        'formatters': {\n            'basic': {\n                'format': '%(asctime)s - %(name)s - %(levelname)s - %(message)s'\n            }\n        },\n        'handlers': {\n            'console': {\n                'class': 'logging.StreamHandler',\n                'formatter': 'basic',\n                'level': 'WARNING',\n                'stream': 'ext://sys.stdout'\n            }\n        'root': {\n            'handlers': ['console'],\n            'level': 'WARNING'\n        }\n    }\n\n    from config_logger import Logger\n    logger = Logger(name='my_logger', default_conf=log_config)\n    logger.warning(\"This will be written in a file called warning.log\")\n\n**Console Output**\n\n::\n\n    2017-01-31 13:12:56,002 - my_logger - WARNING - This will be written in a file called warning.log\n\n*Note: You can find sample of logging configuration files supported by config-logger in* `this repo`_.\n\n\nLicense\n-------\n\nThis project is licensed under the MIT license.\n\n.. _Changelog: https://github.com/afxentios/config-logger/blob/master/CHANGELOG.rst\n.. _Issue tracker: https://github.com/afxentios/config-logger/issues\n.. _latest release: https://github.com/afxentios/config-logger/releases\n.. _Configuration dictionary schema: https://docs.python.org/3/library/logging.config.html#logging-config-dictschema\n.. _this repo: https://github.com/afxentios/python_logging_configuration_sample\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafxentios%2Fconfig-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafxentios%2Fconfig-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafxentios%2Fconfig-logger/lists"}