================================================
LogPlus
================================================
Log Better
* Free software: MIT license
* Documentation: TBD
================================================
Installation
================================================
To install LogPlus::
pip install logplus
or
pip install git+https://github.com/tactlabs/logplus.git
Pip installing the library from local repository::
conda activate <env_name>
python setup.py install develop
================================================
Usage
================================================
To use LogPlus in a project::
import logplus
================================================
Sample
================================================
Example
::
import logplus
logger = logplus.get_logger()
result_json = {
'result': 1,
'a' : "two",
'b' : {
"one" : "two"
}
}
logger.info('message test')
logger.info(result_json)
logger.debug('message debug')
logger.warning('message warning')
logger.error('message error')
================================================
Output
================================================
2024-05-12 16:29:28 info [~/projects/logger-base/test.py:28][startpy] message test
2024-05-12 16:29:28 info [~/projects/logger-base/test.py:29][startpy] {'result': 1, 'a': 'two', 'b': {'one': 'two'}}
2024-05-12 16:29:28 debug [~/projects/logger-base/test.py:31][startpy] message debug
2024-05-12 16:29:28 warning [~/projects/logger-base/test.py:32][startpy] message warning
2024-05-12 16:29:28 error [~/projects/logger-base/test.py:33][startpy] message error
Credits
::
The base code is derived from StructLog (https://github.com/hynek/structlog).
As we see a lot of improvement in StructLog we came up with this library.
===========================================
History
===========================================
::
0.1.3 (2024-05-12)
------------------
* Docs updated
0.1.2 (2024-05-12)
------------------
* Base version derived from multiple libs.
Raw data
{
"_id": null,
"home_page": "https://github.com/tactlabs/logplus",
"name": "logplus",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "logplus",
"author": "Raja CSP Raman",
"author_email": "info@tactii.com",
"download_url": "https://files.pythonhosted.org/packages/c1/77/cc3d0397a70ee6585179641dffb581467db843ab3d09d146ac2e8c96164a/logplus-0.1.3.tar.gz",
"platform": null,
"description": "================================================\nLogPlus\n================================================\n\n\nLog Better\n\n* Free software: MIT license\n* Documentation: TBD\n\n\n================================================\nInstallation\n================================================\n\nTo install LogPlus::\n\n pip install logplus\n\n or\n\n pip install git+https://github.com/tactlabs/logplus.git\n\nPip installing the library from local repository::\n\n conda activate <env_name>\n\n python setup.py install develop\n\n================================================\nUsage\n================================================\n\nTo use LogPlus in a project::\n\n import logplus\n\n================================================\nSample\n================================================\n\nExample\n::\n\n import logplus\n\n logger = logplus.get_logger()\n\n result_json = {\n 'result': 1,\n 'a' : \"two\",\n 'b' : {\n \"one\" : \"two\"\n }\n }\n\n logger.info('message test')\n logger.info(result_json)\n logger.debug('message debug')\n logger.warning('message warning')\n logger.error('message error')\n\n================================================\nOutput\n================================================\n\n 2024-05-12 16:29:28 info [~/projects/logger-base/test.py:28][startpy] message test\n\n 2024-05-12 16:29:28 info [~/projects/logger-base/test.py:29][startpy] {'result': 1, 'a': 'two', 'b': {'one': 'two'}}\n\n 2024-05-12 16:29:28 debug [~/projects/logger-base/test.py:31][startpy] message debug\n\n 2024-05-12 16:29:28 warning [~/projects/logger-base/test.py:32][startpy] message warning\n\n 2024-05-12 16:29:28 error [~/projects/logger-base/test.py:33][startpy] message error\n\nCredits\n::\n\n The base code is derived from StructLog (https://github.com/hynek/structlog).\n As we see a lot of improvement in StructLog we came up with this library.\n\n===========================================\nHistory\n===========================================\n::\n\n 0.1.3 (2024-05-12)\n ------------------\n\n * Docs updated\n\n\n 0.1.2 (2024-05-12)\n ------------------\n\n * Base version derived from multiple libs.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Log Better",
"version": "0.1.3",
"project_urls": {
"Homepage": "https://github.com/tactlabs/logplus"
},
"split_keywords": [
"logplus"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b555776df886b978dbfe562600135a5fdc6c16a7ad8c5f333e54b3d05d94de74",
"md5": "4a4841bce5a6ddabd4d876ae415004f7",
"sha256": "ddbf4586f5b1e95568d170a491359a27d698526acb9ea466cae79bb6215fc7eb"
},
"downloads": -1,
"filename": "logplus-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4a4841bce5a6ddabd4d876ae415004f7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 60516,
"upload_time": "2024-05-12T11:46:13",
"upload_time_iso_8601": "2024-05-12T11:46:13.811683Z",
"url": "https://files.pythonhosted.org/packages/b5/55/776df886b978dbfe562600135a5fdc6c16a7ad8c5f333e54b3d05d94de74/logplus-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c177cc3d0397a70ee6585179641dffb581467db843ab3d09d146ac2e8c96164a",
"md5": "b5aff71b8da3de5ba451cb1524a2457c",
"sha256": "5ddbae858879e12912dc00135968ea145422bdaeafc2e667a138ab08f15f16eb"
},
"downloads": -1,
"filename": "logplus-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "b5aff71b8da3de5ba451cb1524a2457c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 49470,
"upload_time": "2024-05-12T11:46:17",
"upload_time_iso_8601": "2024-05-12T11:46:17.094941Z",
"url": "https://files.pythonhosted.org/packages/c1/77/cc3d0397a70ee6585179641dffb581467db843ab3d09d146ac2e8c96164a/logplus-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-12 11:46:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tactlabs",
"github_project": "logplus",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "logplus"
}