{ "info": { "author": "Alexey Morozov", "author_email": "iphosgen@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: System :: Logging" ], "description": "# EPYLOG\nLogs are the first.\n\nThis is a simple wrapper to standard [logging](https://docs.python.org/3/library/logging.html) library for Python.\n\nEpylog provides to send log data to different sources e.g. file, rsyslog, graylog, http, etc.\n\nUse different loggers for different needs and manage it from one place.\n\n[![build status](https://travis-ci.org/iPhosgen/epylog.svg?branch=master)](https://travis-ci.org/iPhosgen/epylog) [![PyPi status](https://img.shields.io/pypi/v/epylog)](https://pypi.python.org/pypi/epylog) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FiPhosgen%2Fepylog.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FiPhosgen%2Fepylog?ref=badge_shield)\n\n## Installation\n\n```shell script\npip install epylog\n```\n\n## Usage\n\n- Move to project root directory and create `logging.cfg` file:\n ```shell script\n cd /project/root\n touch logging.cfg\n ```\n- Fill configuration file with you logging settings. Push to `targets` array everything you want to send to. And fill `rules` array with logger names (use `*` wildcard if you want) and set which targets loggers can use:\n\n ```json\n {\n \"targets\": [\n {\n \"name\": \"fl\",\n \"type\": \"file\",\n \"filename\": \"/var/log/my_log.log\"\n },\n {\n \"name\": \"gl\",\n \"type\": \"graylog\",\n \"host\": \"localhost\",\n \"port\": 12202,\n \"facility\": \"test\"\n },\n {\n \"name\": \"rsl\",\n \"type\": \"syslog\",\n \"address\": \"localhost\",\n \"facility\": \"test\"\n }\n ],\n \"rules\": [\n { \n \"name\": \"my_test_*\",\n \"min-level\": \"info\",\n \"write-to\": \"fl, gl\",\n \"format\": \"%(asctime)s - %(name)s - %(levelname)s - %(message)s\"\n },\n { \n \"name\": \"*\",\n \"min-level\": \"warning\",\n \"write-to\": \"rsl\",\n \"format\": \"%(asctime)s - %(name)s - %(levelname)s - %(message)s\"\n }\n ]\n }\n ```\n- Finally call `getLogger` function to initialize your logger:\n ```python\n from epylog import Logger\n\n # put some code here\n\n logger = Logger.getLogger('my_test_logger')\n logger.info('Hello from %s', logger.name)\n ```\n- Enjoy sending your logs everywhere\n\n## Configuration reference\n\n`logging.cfg` is a simple JSON object that descxribes all sources that you planning to use and associates loggers with this sources.\n\n### Targets\n\n*Tagrets* are sources where can you send your logs.\n\n```json\n...\n {\n \"name\": \"fl\",\n \"type\": \"file\",\n ...\n }\n...\n```\n\nField | Description\n------------ | -------------\nname | Unique name of target\ntype | Target type. Now availible `file`, `watch-file`, `syslog`, `http` and `graylog` target types\nother fields | Other fields associated with specific target e.g. `filename`, `host`, `facility`, etc.\n\n### Rules\n\n*Rules* are patterns for associating user loggers with specific configuration.\n\n```json\n...\n { \n \"name\": \"my_test_*\",\n \"min-level\": \"info\",\n \"write-to\": \"fl, gl\",\n \"format\": \"%(asctime)s - %(name)s - %(levelname)s - %(message)s\"\n }\n...\n```\n\nField | Description\n------------ | -------------\nname | Unique name(s) of logger given by `getLogger` method. Use `*` wildcard for applying same settings for group of loggers\nmin-level | Minimum logging level\nwrite-to | Target names splitted by comma without whitespases that will be asociated with this logger(s)\nformat | Log line [format](https://docs.python.org/3/library/logging.html#formatter-objects)\n\n## License\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FiPhosgen%2Fepylog.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FiPhosgen%2Fepylog?ref=badge_large)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/iPhosgen/epylog", "keywords": "logging", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "epylog", "package_url": "https://pypi.org/project/epylog/", "platform": "", "project_url": "https://pypi.org/project/epylog/", "project_urls": { "Homepage": "https://github.com/iPhosgen/epylog" }, "release_url": "https://pypi.org/project/epylog/0.1.33/", "requires_dist": null, "requires_python": "", "summary": "Just another one Python logging package.", "version": "0.1.33" }, "last_serial": 5948830, "releases": { "0.1.23": [ { "comment_text": "", "digests": { "md5": "4c37406e481c5b20f7b8e54b04ef6a67", "sha256": "28a2e82d8e4f7ad86d0ce37938f3735c84bd6f3bde0100479be8a8e7bb4ea1b6" }, "downloads": -1, "filename": "epylog-0.1.23-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4c37406e481c5b20f7b8e54b04ef6a67", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3705, "upload_time": "2019-09-30T19:45:20", "url": "https://files.pythonhosted.org/packages/f8/9e/a3573f3278b7406c98ad938289eb5f40dd2c27053e468f88a99b67f448e9/epylog-0.1.23-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf92c547e02784150c041de3a6005057", "sha256": "b7db5607ae550d6df1ed1cd84a60732ef048c98fd75e20a78b3a5ed981cfe633" }, "downloads": -1, "filename": "epylog-0.1.23.tar.gz", "has_sig": false, "md5_digest": "bf92c547e02784150c041de3a6005057", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4037, "upload_time": "2019-09-30T19:45:22", "url": "https://files.pythonhosted.org/packages/2b/82/165bd12756bceda24764a2139727a5de0557ab23f02c2f7e1b4a16cee958/epylog-0.1.23.tar.gz" } ], "0.1.24": [ { "comment_text": "", "digests": { "md5": "238627d3fcd3e173e99cedb221ce5775", "sha256": "0764d482053f1e45e521ffd10259744dbd8bbda1baf2d5962250aacbabf8512b" }, "downloads": -1, "filename": "epylog-0.1.24-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "238627d3fcd3e173e99cedb221ce5775", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4611, "upload_time": "2019-10-02T13:09:18", "url": "https://files.pythonhosted.org/packages/87/d2/5223bbb2c380cca2dd23b81c7ebd73bb6eb2719e42fd2fa5de5cacb18d7e/epylog-0.1.24-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "733113a069b9473d7aa847b99cf3134d", "sha256": "ca6ef5c1b6875f0e4d3825ee2b535c145e42b59c9495e2e6d6574fc56eb1f864" }, "downloads": -1, "filename": "epylog-0.1.24.tar.gz", "has_sig": false, "md5_digest": "733113a069b9473d7aa847b99cf3134d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4437, "upload_time": "2019-10-02T13:09:20", "url": "https://files.pythonhosted.org/packages/0d/74/e7e9b40cf29ecc4397f75ffb665509beba6710178668d85f420608e80f9b/epylog-0.1.24.tar.gz" } ], "0.1.28": [ { "comment_text": "", "digests": { "md5": "b169e8aa179d7c612aebd1c9d64ab9c2", "sha256": "5d9b948c7b8ba5dce3efeebb0d11a8aa389f5967eadf113f962b975fcf7f5e0c" }, "downloads": -1, "filename": "epylog-0.1.28-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b169e8aa179d7c612aebd1c9d64ab9c2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5147, "upload_time": "2019-10-04T17:31:45", "url": "https://files.pythonhosted.org/packages/13/01/b09e3c9864b84b9429bca39b7483c517fc87c73d61317a97dc3c8fa8cbe2/epylog-0.1.28-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "25b8434a806a8ab13fc0f77deadd2b29", "sha256": "f2d6c6296b74a1e66aba93f7d1d1aeacdc23e694bf3576ad457461fecc36a0c8" }, "downloads": -1, "filename": "epylog-0.1.28.tar.gz", "has_sig": false, "md5_digest": "25b8434a806a8ab13fc0f77deadd2b29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4772, "upload_time": "2019-10-04T17:31:47", "url": "https://files.pythonhosted.org/packages/0b/17/f74acd8296876d95fe54a49700614b6d0868b53570afe8eb39e3b2b5e549/epylog-0.1.28.tar.gz" } ], "0.1.31": [ { "comment_text": "", "digests": { "md5": "92bcaaca1b3f7462152084fb5eaa7c71", "sha256": "9c500a8ebb462985b0345bb74d05ba6741a03315a1cb1aeb48a2192bc32ddf92" }, "downloads": -1, "filename": "epylog-0.1.31-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "92bcaaca1b3f7462152084fb5eaa7c71", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5221, "upload_time": "2019-10-06T16:22:50", "url": "https://files.pythonhosted.org/packages/29/64/3f0dc46609605787cf835054270f26c0ae42c664b6f91222b48c3f0a61e3/epylog-0.1.31-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "64c92cd88dc32a0edd126fb2b4f726c5", "sha256": "418d6fd46a43a0fa9678acbca17ae5889efbbce08d9d6eae457420bcc09e9b1a" }, "downloads": -1, "filename": "epylog-0.1.31.tar.gz", "has_sig": false, "md5_digest": "64c92cd88dc32a0edd126fb2b4f726c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4830, "upload_time": "2019-10-06T16:22:51", "url": "https://files.pythonhosted.org/packages/2e/f4/4af289ed5b32683ef5899d3e849f6a81d548c86a8f5f94ff4f35d7038508/epylog-0.1.31.tar.gz" } ], "0.1.32": [ { "comment_text": "", "digests": { "md5": "67f84086fbc73cb7d4465a618fe58315", "sha256": "0d977640167f3eae40fc99a39ebf8d7e2317c9350000a2e84fd8fa6dbb3c7f5f" }, "downloads": -1, "filename": "epylog-0.1.32-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "67f84086fbc73cb7d4465a618fe58315", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5664, "upload_time": "2019-10-09T09:41:29", "url": "https://files.pythonhosted.org/packages/c5/99/128ed6ba01e57e031bb4cf6f1dba55269160c0bb3c5289d3b34e87da40fb/epylog-0.1.32-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fab7f5a6043e7aea7727cd3e606003af", "sha256": "f34bf7937f0492c1df18c8c90dc418ebb46dfd94d1f2b949be63a06467044083" }, "downloads": -1, "filename": "epylog-0.1.32.tar.gz", "has_sig": false, "md5_digest": "fab7f5a6043e7aea7727cd3e606003af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5368, "upload_time": "2019-10-09T09:41:31", "url": "https://files.pythonhosted.org/packages/65/aa/a62ad2501efa8da8d8ba7a3e050659fe387627f72860b87ed7386da48184/epylog-0.1.32.tar.gz" } ], "0.1.33": [ { "comment_text": "", "digests": { "md5": "2ab647c73b417db114a8ada02417189b", "sha256": "efd7dfdbc31e227b11a3490da9358814724febc267665144f905b4fedc013389" }, "downloads": -1, "filename": "epylog-0.1.33-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2ab647c73b417db114a8ada02417189b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5663, "upload_time": "2019-10-09T09:42:22", "url": "https://files.pythonhosted.org/packages/11/43/e4247031d233a41bd123141ab45c596ee16f74ccf1126d1fd7f1b91b4c5e/epylog-0.1.33-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "074a64df4872b451533fd43e31e44870", "sha256": "fdba779ac3aa1923f5f8415ca91f735dc69e2bf60f283eba90f4fb90d77e9a04" }, "downloads": -1, "filename": "epylog-0.1.33.tar.gz", "has_sig": false, "md5_digest": "074a64df4872b451533fd43e31e44870", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5369, "upload_time": "2019-10-09T09:42:24", "url": "https://files.pythonhosted.org/packages/78/f2/f584130699783043785d80cd9a90ac674e7b7b71edbe8e8f55e931e50a2a/epylog-0.1.33.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2ab647c73b417db114a8ada02417189b", "sha256": "efd7dfdbc31e227b11a3490da9358814724febc267665144f905b4fedc013389" }, "downloads": -1, "filename": "epylog-0.1.33-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2ab647c73b417db114a8ada02417189b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5663, "upload_time": "2019-10-09T09:42:22", "url": "https://files.pythonhosted.org/packages/11/43/e4247031d233a41bd123141ab45c596ee16f74ccf1126d1fd7f1b91b4c5e/epylog-0.1.33-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "074a64df4872b451533fd43e31e44870", "sha256": "fdba779ac3aa1923f5f8415ca91f735dc69e2bf60f283eba90f4fb90d77e9a04" }, "downloads": -1, "filename": "epylog-0.1.33.tar.gz", "has_sig": false, "md5_digest": "074a64df4872b451533fd43e31e44870", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5369, "upload_time": "2019-10-09T09:42:24", "url": "https://files.pythonhosted.org/packages/78/f2/f584130699783043785d80cd9a90ac674e7b7b71edbe8e8f55e931e50a2a/epylog-0.1.33.tar.gz" } ] }