quickbelog


Namequickbelog JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/eldad1221/quickbelog
SummaryAutomate IT operations
upload_time2022-04-12 14:02:51
maintainer
docs_urlNone
authorEldad Bishari
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements pytest
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Quick using logger

This small project purpose is to add nice and clean logs to your app.
Just import the `quickbelog.Log` class wherever you need and start using it.
To make debugging easier by default it will include the name of the source file and line number in order to understand what code line is responsible for the output.

## Usage:

    from quickbelog import Log

    Log.info(msg='This is an info message')
    Log.debug(msg='This is a debug message')
    Log.warning(msg='This is a warning message')
    Log.error(msg='This is an error message')
    try:
        raise ValueError('Just for testing')
    except ValueError:
        quickbe.Log.exception('Something failed')

## Output

    2022-03-14 15:54:03,411 > INFO  test_logger.py(17) method: test_basic_log_message        This is an info message
    2022-03-14 15:54:03,411 > DEBUG        test_logger.py(21) method: test_debug_message    This is a debug message
    2022-03-14 15:54:03,411 > WARNING      test_logger.py(29) method: test_warning_message          This is a warning message
    2022-03-14 15:54:03,412 > ERROR        test_logger.py(33) method: test_error_message    This is an error message
    2022-03-14 15:54:03,412 > ERROR        test_logger.py(13) method: test_exception_logging        Something failed
    Traceback (most recent call last):
      File ".\test_logger.py", line 11, in test_exception_logging
        raise ValueError('Just for testing')
    ValueError: Just for testing

Have fun :-)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/eldad1221/quickbelog",
    "name": "quickbelog",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Eldad Bishari",
    "author_email": "eldad@1221tlv.org",
    "download_url": "https://files.pythonhosted.org/packages/32/2a/4add801b4d072ff6cf69a0fc4a7f0753334a1cc20794ca0153c4f71af997/quickbelog-1.1.0.tar.gz",
    "platform": null,
    "description": "# Quick using logger\n\nThis small project purpose is to add nice and clean logs to your app.\nJust import the `quickbelog.Log` class wherever you need and start using it.\nTo make debugging easier by default it will include the name of the source file and line number in order to understand what code line is responsible for the output.\n\n## Usage:\n\n    from quickbelog import Log\n\n    Log.info(msg='This is an info message')\n    Log.debug(msg='This is a debug message')\n    Log.warning(msg='This is a warning message')\n    Log.error(msg='This is an error message')\n    try:\n        raise ValueError('Just for testing')\n    except ValueError:\n        quickbe.Log.exception('Something failed')\n\n## Output\n\n    2022-03-14 15:54:03,411 > INFO  test_logger.py(17) method: test_basic_log_message        This is an info message\n    2022-03-14 15:54:03,411 > DEBUG        test_logger.py(21) method: test_debug_message    This is a debug message\n    2022-03-14 15:54:03,411 > WARNING      test_logger.py(29) method: test_warning_message          This is a warning message\n    2022-03-14 15:54:03,412 > ERROR        test_logger.py(33) method: test_error_message    This is an error message\n    2022-03-14 15:54:03,412 > ERROR        test_logger.py(13) method: test_exception_logging        Something failed\n    Traceback (most recent call last):\n      File \".\\test_logger.py\", line 11, in test_exception_logging\n        raise ValueError('Just for testing')\n    ValueError: Just for testing\n\nHave fun :-)\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Automate IT operations",
    "version": "1.1.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "19298308fd420663f8a636b0c06093bd22346f7c86f139dff0dd4da60d01bfde",
                "md5": "8cfa1bae9482d7a3b27baa9618bd9dae",
                "sha256": "ac88df20bde07dccb308f3c70139547fd30b42ba2a6dd8557aab6bdf86cfe317"
            },
            "downloads": -1,
            "filename": "quickbelog-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8cfa1bae9482d7a3b27baa9618bd9dae",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3862,
            "upload_time": "2022-04-12T14:02:49",
            "upload_time_iso_8601": "2022-04-12T14:02:49.309755Z",
            "url": "https://files.pythonhosted.org/packages/19/29/8308fd420663f8a636b0c06093bd22346f7c86f139dff0dd4da60d01bfde/quickbelog-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "322a4add801b4d072ff6cf69a0fc4a7f0753334a1cc20794ca0153c4f71af997",
                "md5": "c9acdc49dce729a78d071ffae4fe5eb8",
                "sha256": "72dfec77483bd30047431aadf73c862e97bc8463758a767e3e35f96602cd440f"
            },
            "downloads": -1,
            "filename": "quickbelog-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c9acdc49dce729a78d071ffae4fe5eb8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3460,
            "upload_time": "2022-04-12T14:02:51",
            "upload_time_iso_8601": "2022-04-12T14:02:51.513169Z",
            "url": "https://files.pythonhosted.org/packages/32/2a/4add801b4d072ff6cf69a0fc4a7f0753334a1cc20794ca0153c4f71af997/quickbelog-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-04-12 14:02:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "eldad1221",
    "github_project": "quickbelog",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "pytest",
            "specs": []
        }
    ],
    "lcname": "quickbelog"
}
        
Elapsed time: 0.04974s