一个SSC开发的兼容日志2.0的包
安装:
pip3 install sc_concurrent_log_handler -i https://pypi.org/simple --trusted-host pypi.org
用法:
import ssc_concurrent_log_handler
logger = ssc_concurrent_log_handler.getLogger()
logger.info("A")
logger.error("B")
注意程序全局只能有一个logger,不要重复创建
Raw data
{
"_id": null,
"home_page": "",
"name": "sc-concurrent-log-handler",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "logging,windows,linux,unix,rotate,QueueHandler,QueueListener,portalocker",
"author": "Aric Yang",
"author_email": "yangzhao9@baidu.com",
"download_url": "https://files.pythonhosted.org/packages/13/47/16a55fa42e836730239660025aa8b1362a5b8ec1ccd74703f11dbfdf06c2/sc-concurrent-log-handler-0.0.14.tar.gz",
"platform": null,
"description": "\u4e00\u4e2aSSC\u5f00\u53d1\u7684\u517c\u5bb9\u65e5\u5fd72.0\u7684\u5305\n\n\u5b89\u88c5\uff1a\npip3 install sc_concurrent_log_handler -i https://pypi.org/simple --trusted-host pypi.org\n\n\u7528\u6cd5\uff1a\nimport ssc_concurrent_log_handler\nlogger = ssc_concurrent_log_handler.getLogger()\nlogger.info(\"A\")\nlogger.error(\"B\")\n\n\u6ce8\u610f\u7a0b\u5e8f\u5168\u5c40\u53ea\u80fd\u6709\u4e00\u4e2alogger\uff0c\u4e0d\u8981\u91cd\u590d\u521b\u5efa\n\n",
"bugtrack_url": null,
"license": "http://www.apache.org/licenses/LICENSE-2.0",
"summary": "SSC Enhanced RotatingFileHandler replacement with concurrency, gzip and Windows support",
"version": "0.0.14",
"project_urls": null,
"split_keywords": [
"logging",
"windows",
"linux",
"unix",
"rotate",
"queuehandler",
"queuelistener",
"portalocker"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a5e24d8e7fbdb0e3982dcebd8450ad5308aa20c942f449689393fc1d18f642cb",
"md5": "2edb11ad42933d6a6f1109f7680b75e2",
"sha256": "3a797441a16082ae319446e97e3baea59fb75e8927849b492d03d7c239c1f5e3"
},
"downloads": -1,
"filename": "sc_concurrent_log_handler-0.0.14-py2-none-any.whl",
"has_sig": false,
"md5_digest": "2edb11ad42933d6a6f1109f7680b75e2",
"packagetype": "bdist_wheel",
"python_version": "py2",
"requires_python": ">=3.6",
"size": 3858,
"upload_time": "2023-09-18T11:21:29",
"upload_time_iso_8601": "2023-09-18T11:21:29.991724Z",
"url": "https://files.pythonhosted.org/packages/a5/e2/4d8e7fbdb0e3982dcebd8450ad5308aa20c942f449689393fc1d18f642cb/sc_concurrent_log_handler-0.0.14-py2-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "134716a55fa42e836730239660025aa8b1362a5b8ec1ccd74703f11dbfdf06c2",
"md5": "85a51f227459f4150a2fc139d67fa947",
"sha256": "ccc0301aa7faab229a10bcab26b84259e40b68b2d310ff53311747c8e337531e"
},
"downloads": -1,
"filename": "sc-concurrent-log-handler-0.0.14.tar.gz",
"has_sig": false,
"md5_digest": "85a51f227459f4150a2fc139d67fa947",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3941,
"upload_time": "2023-09-18T11:21:32",
"upload_time_iso_8601": "2023-09-18T11:21:32.052046Z",
"url": "https://files.pythonhosted.org/packages/13/47/16a55fa42e836730239660025aa8b1362a5b8ec1ccd74703f11dbfdf06c2/sc-concurrent-log-handler-0.0.14.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-18 11:21:32",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "sc-concurrent-log-handler"
}