{"id":19572237,"url":"https://github.com/studybuffalo/python_logging","last_synced_at":"2025-10-13T00:45:09.958Z","repository":{"id":146904600,"uuid":"84741411","full_name":"studybuffalo/python_logging","owner":"studybuffalo","description":"Python module to control logging for my python apps","archived":false,"fork":false,"pushed_at":"2017-03-13T01:09:26.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T03:39:12.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/studybuffalo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-12T16:50:15.000Z","updated_at":"2017-03-12T16:58:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"acd9f2d5-ae91-4e13-8c3e-e3f6adb302b0","html_url":"https://github.com/studybuffalo/python_logging","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/studybuffalo%2Fpython_logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studybuffalo%2Fpython_logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studybuffalo%2Fpython_logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studybuffalo%2Fpython_logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/studybuffalo","download_url":"https://codeload.github.com/studybuffalo/python_logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240840049,"owners_count":19866164,"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":[],"created_at":"2024-11-11T06:24:49.973Z","updated_at":"2025-10-13T00:45:04.938Z","avatar_url":"https://github.com/studybuffalo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python_logging\nA python package to streamline logging for current and future Python projects. It is capable of generating up to 4 handlers:\n- A console handler\n- A file handler\n- A modified file handler that names the log the current date\n- A modified buffering handler that emails the logs to a specified email\nThe package is built and tested in Python 3.6.\n\n## Package Dependencies\n- logging\n- configparser\n- smtplib (if using the Email Handler)\n- email (if using the Email Handler)\n- datetime (if using the File Date Handler)\n- unipath (if using the File Date Handler)\n\n## Usage\nThe python_logging folder contains all the needed files to output a logging object. Simply import the python_logging package and create a logging object and run the start function. A config file can be passed in to specify the loaded handlers. If no config file is passed in, the log will default to a console handler.\n\n```\nimport python_logging\nimport configparser\n\nconfig = configparser.ConfigParser()\nconfig.read(\"\\home\\user\\my_config_file.cfg\")\n\nlog = python_logging.start(config)\n\nlog.info(\"This is a test of the log\")\n\u003e 00:00:00 - INFO      This is a test of the log\n```\n\n## Testing\nThe package_test.py can be used to confirm the module and handlers are working properly. You will need to update the config location to a correct directory to test this part out.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudybuffalo%2Fpython_logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstudybuffalo%2Fpython_logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudybuffalo%2Fpython_logging/lists"}