{"id":18518525,"url":"https://github.com/meanstrong/log-handler-daily-path","last_synced_at":"2025-05-14T15:32:46.058Z","repository":{"id":57438817,"uuid":"333133883","full_name":"meanstrong/log-handler-daily-path","owner":"meanstrong","description":"一个每日切换日志路径模块","archived":false,"fork":false,"pushed_at":"2021-03-19T02:48:19.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T22:06:48.916Z","etag":null,"topics":["logging","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meanstrong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-26T15:48:27.000Z","updated_at":"2021-03-19T02:48:20.000Z","dependencies_parsed_at":"2022-09-06T14:40:17.214Z","dependency_job_id":null,"html_url":"https://github.com/meanstrong/log-handler-daily-path","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meanstrong%2Flog-handler-daily-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meanstrong%2Flog-handler-daily-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meanstrong%2Flog-handler-daily-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meanstrong%2Flog-handler-daily-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meanstrong","download_url":"https://codeload.github.com/meanstrong/log-handler-daily-path/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250512076,"owners_count":21442945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logging","python3"],"created_at":"2024-11-06T17:13:39.181Z","updated_at":"2025-05-14T15:32:46.028Z","avatar_url":"https://github.com/meanstrong.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# log-handler-daily-path - 一个每日切换日志路径模块\n\n[![image](https://img.shields.io/pypi/v/log-handler-daily-path.svg)](https://pypi.org/project/log-handler-daily-path/)\n[![image](https://img.shields.io/pypi/l/log-handler-daily-path.svg)](https://pypi.org/project/log-handler-daily-path/)\n\n## About\n这是一个日志路径每日轮转模块，按照指定方式每日切换日志输出路径。  \n日志输出的路径为： { base_path }/{ yyyy-MM-dd }/{ filename }\n\n## Requirements\n- Python3\n\n## Install\n通过pip命令安装：\n```shell\npip install log-handler-daily-path\n```\n\n## Usage\n```python\nimport logging\n\nfrom log_handler_daily_path import DailyRotatingPathHander\n\n\nlogging.basicConfig(level=logging.DEBUG)\nlog_handler = DailyRotatingPathHander(base_path=\"/var/log\", filename=\"app.log\", backup_days=30)\nlogging.getLogger().addHandler(log_handler)\n\nlogger = logging.getLogger(\"Logger\")\nlogger.info(\"xxx\")\n```\n\n\n## Author\n- \u003ca href=\"mailto:pmq2008@gmail.com\"\u003eRocky Peng\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeanstrong%2Flog-handler-daily-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeanstrong%2Flog-handler-daily-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeanstrong%2Flog-handler-daily-path/lists"}