{"id":47221606,"url":"https://github.com/tinybees/aelog","last_synced_at":"2026-03-13T19:00:13.453Z","repository":{"id":57408351,"uuid":"125795785","full_name":"tinybees/aelog","owner":"tinybees","description":"An simple, async, full package name path, log rotating, different colored log library.","archived":false,"fork":false,"pushed_at":"2020-11-12T01:50:31.000Z","size":394,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-21T23:55:54.932Z","etag":null,"topics":["aelog","async","asynchronous","colored","log","logging","python","python-log","rotating","simple"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinybees.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2018-03-19T03:21:58.000Z","updated_at":"2020-11-12T01:50:34.000Z","dependencies_parsed_at":"2022-09-26T16:31:17.610Z","dependency_job_id":null,"html_url":"https://github.com/tinybees/aelog","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tinybees/aelog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybees%2Faelog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybees%2Faelog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybees%2Faelog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybees%2Faelog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinybees","download_url":"https://codeload.github.com/tinybees/aelog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybees%2Faelog/sbom","scorecard":{"id":887470,"data":{"date":"2025-08-11","repo":{"name":"github.com/tinybees/aelog","commit":"6e88a3d2454dcf8736fd352c4eb5f9ef4ff2221e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T10:32:08.383Z","repository_id":57408351,"created_at":"2025-08-24T10:32:08.383Z","updated_at":"2025-08-24T10:32:08.383Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30472986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T17:15:31.527Z","status":"ssl_error","status_checked_at":"2026-03-13T17:15:22.394Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["aelog","async","asynchronous","colored","log","logging","python","python-log","rotating","simple"],"created_at":"2026-03-13T19:00:12.435Z","updated_at":"2026-03-13T19:00:13.444Z","avatar_url":"https://github.com/tinybees.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aelog\nAn simple, async, full package name path, log rotating, different colored log library.\n\naelog aims to make using python log as simple as possible. as a result, it drastically \nsimplifies using python logging.\n\naelog's design objectives:\n\n- Make using python log as simple as possible.\n- Output log contains the full package name path.\n- Provide asynchronous log output function, at the same time, contains common log output.\n- Output according to the log level to mark the different colors separately.\n- Provide a log file rotating, automatic backup.\n- Output to the terminal and file, default output to the terminal, if you don't provide the log file path.\n\n# Installing aelog\n- ```pip install aelog```\n\n# init aelog \n```\nimport aelog \n\napp = Flask(__name__)\n\naelog.init_app(app)\n# or \naelog.init_app(aelog_access_file='aelog_access_file.log', aelog_error_file='aelog_error_file.log', \n               aelog_console=False)\n```\n# aelog config\nList of configuration keys that the aelog extension recognizes:\n\n\n| configuration key | the meaning of the configuration key |\n| ------ | ------ |\n| AELOG_ACCESS_FILE | Access file path, default None. |\n| AELOG_ERROR_FILE | Error file path, default None. |\n| AELOG_CONSOLE | Whether it is output at the terminal, default false. |\n| AELOG_LEVEL | log level, default 'DEBUG'. |\n| AELOG_MAX_BYTES | Log file size, default 50M. |\n| AELOG_BACKUP_COUNT | Rotating file count, default 5.|\n\n# Usage\n### simple using, output log to terminal.\n```\nimport aelog\n\naelog.init_app(aelog_console=True)\n\ndef test_aelog_output_console():\n    \"\"\"\n\n    Args:\n\n    Returns:\n\n    \"\"\"\n    aelog.debug(\"simple debug message\", \"other message\")\n    aelog.info(\"simple info message\", \"other message\")\n    aelog.warning(\"simple warning message\", \"other message\")\n    aelog.error(\"simple error message\", \"other message\")\n    aelog.critical(\"simple critical message\", \"other message\")\n    try:\n        5 / 0\n    except Exception as e:\n        aelog.exception(e)\n```\nThis will output to the terminal.  \n![console](https://raw.githubusercontent.com/tinybees/aelog/master/docs/output_console.png)\n- Different levels of logging, different color, the color is cyan, green, yellow, red and 'bold_red,bg_white' in turn.\n\n### output log to file and terminal.\n```\nimport aelog\nfrom flask import Flask\n\napp = Flask(__name__)\n\naelog.init_app(app)  # Output to the test.log file and terminal \n\ndef test_aelog_output_file():\n    \"\"\"\n\n    Args:\n\n    Returns:\n\n    \"\"\"\n    aelog.debug(\"simple debug message\", \"other message\")\n    aelog.info(\"simple info message\", \"other message\")\n    aelog.warning(\"simple warning message\", \"other message\")\n    aelog.error(\"simple error message\", \"other message\")\n    aelog.critical(\"simple critical message\", \"other message\")\n    try:\n        5 / 0\n    except Exception as e:\n        aelog.exception(e)\n```\nThis will output to the test.log file and terminal.\n![console](https://raw.githubusercontent.com/tinybees/aelog/master/docs/output_file.png)\n- Automatic output is greater than the error information to the 'test_error.log' file.\n- Different levels of logging, different color, the color is cyan, green, yellow, red and 'bold_red,bg_white' in turn.\n\n### asynchronous output log to file and terminal.\n```\nimport asyncio\nimport aelog\nfrom sanic import Sanic\n\napp = Sanic(__name__)\n\naelog.init_aelog(app)  # Output to the test.log file and terminal \n\nasync def test_async_output():\n    await aelog.async_debug(\"simple debug message\", \"other message\")\n    await aelog.async_info(\"simple info message\", \"other message\")\n    await aelog.async_warning(\"simple warning message\", \"other message\")\n    await aelog.async_error(\"simple error message\", \"other message\")\n    await aelog.async_critical(\"simple critical message\", \"other message\")\n    try:\n        5 / 0\n    except Exception as e:\n        await aelog.async_exception(e)\n\nif \"__name__\"==\"__main__\":\n    loop = asyncio.get_event_loop()\n    loop.run_until_complete(test_async_output())\n```\nThis will output to the test.log file and terminal.\n![console](https://raw.githubusercontent.com/tinybees/aelog/master/docs/async_output.png)\n- Automatic output is greater than the error information to the 'test_error.log' file.  \n- Different levels of logging, different color, the color is cyan, green, yellow, red and 'bold_red,bg_white' in turn.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinybees%2Faelog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinybees%2Faelog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinybees%2Faelog/lists"}