dorsa-logging


Namedorsa-logging JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/DORSA-co/modules/tree/main/Dorsa_Logging
SummaryLog application happenings
upload_time2023-04-13 11:18:26
maintainer
docs_urlNone
authorDorsa-co
requires_python
licenseApache License 2.0
keywords pypi dorsa_logging
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Logging
Logging is Python package that contains a class to log an application happenings.

## Installation and updating

Use the package manager  [pip](https://pypi.org/project/dorsa-logging/)  to install package.

## Usage
Class Methods:
-   app_logger.create_new_log --> This function creates a log with input message and log level.
-   app_logger.set_current_user --> This function sets the input username as the current user.
#### Demo of the features:
```python
from  logging_funcs  import  app_logger

logger = app_logger()

logger.set_current_user(current_username='DORSA')
logger.create_new_log(message='This is a debug message', level=0)
logger.create_new_log(message='This is a info message', level=1)
logger.create_new_log(message='This is a warning message', level=2)
logger.create_new_log(message='This is a error message', level=3)
logger.create_new_log(message='This is a critical error message', level=4)
logger.create_new_log(message='This is a excepion error message', level=5)
```
## License
[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/DORSA-co/modules/tree/main/Dorsa_Logging",
    "name": "dorsa-logging",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "pypi,dorsa_logging",
    "author": "Dorsa-co",
    "author_email": "info@dorsa-co.ir",
    "download_url": "https://files.pythonhosted.org/packages/de/11/f17c7443cb4fd44e7202383986c03f8b64e36f80f644105e0294f2ee3900/dorsa_logging-1.0.3.tar.gz",
    "platform": null,
    "description": "# Logging\nLogging is Python package that contains a class to log an application happenings.\n\n## Installation and updating\n\nUse the package manager  [pip](https://pypi.org/project/dorsa-logging/)  to install package.\n\n## Usage\nClass Methods:\n-   app_logger.create_new_log --> This function creates a log with input message and log level.\n-   app_logger.set_current_user --> This function sets the input username as the current user.\n#### Demo of the features:\n```python\nfrom  logging_funcs  import  app_logger\n\nlogger = app_logger()\n\nlogger.set_current_user(current_username='DORSA')\nlogger.create_new_log(message='This is a debug message', level=0)\nlogger.create_new_log(message='This is a info message', level=1)\nlogger.create_new_log(message='This is a warning message', level=2)\nlogger.create_new_log(message='This is a error message', level=3)\nlogger.create_new_log(message='This is a critical error message', level=4)\nlogger.create_new_log(message='This is a excepion error message', level=5)\n```\n## License\n[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)\n\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "Log application happenings",
    "version": "1.0.3",
    "split_keywords": [
        "pypi",
        "dorsa_logging"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "53ed92580604a6b6177f2f7d4f5898f82da6d7e8121c3de595e339b8c0485e09",
                "md5": "d647df7ca30269f2dfd323fadabbe597",
                "sha256": "41e2be96f1ae06bd279110c2f32ee81cffcf793e282dd84f6186fa9b6fad57fe"
            },
            "downloads": -1,
            "filename": "dorsa_logging-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d647df7ca30269f2dfd323fadabbe597",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7428,
            "upload_time": "2023-04-13T11:18:23",
            "upload_time_iso_8601": "2023-04-13T11:18:23.760326Z",
            "url": "https://files.pythonhosted.org/packages/53/ed/92580604a6b6177f2f7d4f5898f82da6d7e8121c3de595e339b8c0485e09/dorsa_logging-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de11f17c7443cb4fd44e7202383986c03f8b64e36f80f644105e0294f2ee3900",
                "md5": "84f734c06c7194e7dda213e152a2d1e2",
                "sha256": "fa949557bb5d0b9202a7d341d22fb19826d237d7493182c4a948919081a5bdbc"
            },
            "downloads": -1,
            "filename": "dorsa_logging-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "84f734c06c7194e7dda213e152a2d1e2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7192,
            "upload_time": "2023-04-13T11:18:26",
            "upload_time_iso_8601": "2023-04-13T11:18:26.246707Z",
            "url": "https://files.pythonhosted.org/packages/de/11/f17c7443cb4fd44e7202383986c03f8b64e36f80f644105e0294f2ee3900/dorsa_logging-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-13 11:18:26",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "dorsa-logging"
}
        
Elapsed time: 0.14337s