{"id":17343055,"url":"https://github.com/taogeyt/log4py","last_synced_at":"2025-04-14T19:53:30.649Z","repository":{"id":62576639,"uuid":"135167810","full_name":"taogeYT/log4py","owner":"taogeYT","description":"Log For Python","archived":false,"fork":false,"pushed_at":"2020-09-13T12:37:33.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-28T08:12:07.245Z","etag":null,"topics":["log","logger","logging","logging-library","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taogeYT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-28T13:55:37.000Z","updated_at":"2024-01-15T04:21:37.000Z","dependencies_parsed_at":"2022-11-03T17:36:09.038Z","dependency_job_id":null,"html_url":"https://github.com/taogeYT/log4py","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/taogeYT%2Flog4py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taogeYT%2Flog4py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taogeYT%2Flog4py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taogeYT%2Flog4py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taogeYT","download_url":"https://codeload.github.com/taogeYT/log4py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248951978,"owners_count":21188420,"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":["log","logger","logging","logging-library","python"],"created_at":"2024-10-15T16:08:12.121Z","updated_at":"2025-04-14T19:53:30.622Z","avatar_url":"https://github.com/taogeYT.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Log For Python\n\n### Installation:\n    pip install log4py\n\n### Usage:\n```python\nfrom log4py import Logger\nLogger.set_level(\"INFO\")\nlog = Logger.get_logger(__name__)\nlog.info(\"hello logger\")\n\n@Logger.class_logger()\nclass LogTest:\n    def __init__(self):\n        self.logger.info(\"hello class logger\")\nLogTest()\n```\n\noutput:     \n\n    2020-09-13 20:35:17 INFO __main__.\u003cmodule\u003e(demo.py:43): hello logger\n    2020-09-13 20:35:17 INFO __main__.LogTest.__init__(demo.py:48): hello class logger\n\n\nlogger config\n\n```python\nfrom log4py import Logger\nconfig = {\n    \"handlers\": {\"file_handler\": {\"class\": \"logging.FileHandler\", 'filename': 'demo.log'}},\n    \"loggers\": {'__main__': {\"level\": \"INFO\", \"handlers\": [\"file_handler\"], 'propagate': False}}\n}\nLogger.configure(**config)\nlog = Logger.get_logger(__name__)\nlog.info(\"hello logger\")\n```\n\noverlay default config\n\n    Logger.dict_config(dict_config)\nOR\n\n    Logger.file_config(\"logger.conf\")\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaogeyt%2Flog4py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaogeyt%2Flog4py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaogeyt%2Flog4py/lists"}