{ "info": { "author": "Afxentios Hadjiminas", "author_email": "afxentios@hadjimina.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "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", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/afxentios/config-logger", "keywords": "logging,configurable,configuration", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "config-logger", "package_url": "https://pypi.org/project/config-logger/", "platform": "", "project_url": "https://pypi.org/project/config-logger/", "project_urls": { "Homepage": "https://github.com/afxentios/config-logger" }, "release_url": "https://pypi.org/project/config-logger/1.1.1/", "requires_dist": null, "requires_python": "", "summary": "A simple configurable logger for python projects", "version": "1.1.1" }, "last_serial": 4422642, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "183bd41b8950c146dac20704b94d6e94", "sha256": "e7e70bb36303eb4972660bdca3c0adf0e9daf5d5edda289accdda7a06fe59e0e" }, "downloads": -1, "filename": "config-logger-1.0.0.tar.gz", "has_sig": false, "md5_digest": "183bd41b8950c146dac20704b94d6e94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5068, "upload_time": "2017-01-31T14:32:27", "url": "https://files.pythonhosted.org/packages/f7/59/719fa548152aa3c8604ad997f58566411dc114ddbd3de0024fe9f56ea62e/config-logger-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "f6e1916cf5a96813eae41e3c7788feef", "sha256": "e2c6343168c1dc2bda045c6bdf8506f3966788371548dfef54e3c7e68143bfdd" }, "downloads": -1, "filename": "config-logger-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f6e1916cf5a96813eae41e3c7788feef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5611, "upload_time": "2017-05-10T12:31:27", "url": "https://files.pythonhosted.org/packages/6d/09/5e8c3e08bcf919534cc6132b6f0009faf40090716130092a8d6253929bca/config-logger-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "c71091d33e16ba3c1f6f370b573753ba", "sha256": "1a34bca0cea2c71328740a4f3e213d3c7fac20b34b845825b53d7a984931360a" }, "downloads": -1, "filename": "config-logger-1.0.2.tar.gz", "has_sig": false, "md5_digest": "c71091d33e16ba3c1f6f370b573753ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5785, "upload_time": "2017-06-05T11:06:18", "url": "https://files.pythonhosted.org/packages/d5/e8/ffcbed088fc8673f417ea9167a97dc98832f15bcd6068e20b551ea2abd4e/config-logger-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "8ffa0f7c6e983050785edd9f4c7dd92a", "sha256": "d6c5380f1545140f5e13a579cef488ac5d12cba1b71c0484aa35c99c52796559" }, "downloads": -1, "filename": "config_logger-1.1.0-py3.6.egg", "has_sig": false, "md5_digest": "8ffa0f7c6e983050785edd9f4c7dd92a", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 11970, "upload_time": "2018-10-27T14:29:20", "url": "https://files.pythonhosted.org/packages/e7/25/0280972208c65c9e6f7241ac4782d4291aac7f11c89f5ba18e431ae73fb6/config_logger-1.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "10e3ef87cc8029678ba797fd9c707680", "sha256": "82cfce387b53a742f5df902990e6e0505477d1a4de96faa58cc0562e34bc0189" }, "downloads": -1, "filename": "config-logger-1.1.0.tar.gz", "has_sig": false, "md5_digest": "10e3ef87cc8029678ba797fd9c707680", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5915, "upload_time": "2018-10-22T19:21:25", "url": "https://files.pythonhosted.org/packages/64/0b/2b9d66018af522449013d0d1e7d968c7d2293048b3140b6cef608e784373/config-logger-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "1ed112378fcf8db559de626b273ecaa7", "sha256": "37d28f9d198b991044593e9e68667eb7828aa9371659f29ac6591d7636bb6d90" }, "downloads": -1, "filename": "config-logger-1.1.1.tar.gz", "has_sig": false, "md5_digest": "1ed112378fcf8db559de626b273ecaa7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6284, "upload_time": "2018-10-27T19:26:33", "url": "https://files.pythonhosted.org/packages/e2/1b/6e0cf9185fc2ccab342924d26e5b41c7a985e9078ee0a5e66ef9b1bce617/config-logger-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1ed112378fcf8db559de626b273ecaa7", "sha256": "37d28f9d198b991044593e9e68667eb7828aa9371659f29ac6591d7636bb6d90" }, "downloads": -1, "filename": "config-logger-1.1.1.tar.gz", "has_sig": false, "md5_digest": "1ed112378fcf8db559de626b273ecaa7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6284, "upload_time": "2018-10-27T19:26:33", "url": "https://files.pythonhosted.org/packages/e2/1b/6e0cf9185fc2ccab342924d26e5b41c7a985e9078ee0a5e66ef9b1bce617/config-logger-1.1.1.tar.gz" } ] }