{"id":15158331,"url":"https://github.com/ron-chang/log-stacker","last_synced_at":"2026-02-08T00:32:52.069Z","repository":{"id":62576784,"uuid":"332608910","full_name":"Ron-Chang/Log-Stacker","owner":"Ron-Chang","description":"A colourful and less settings logger, based on built-in package `logging`.","archived":false,"fork":false,"pushed_at":"2021-02-07T08:33:25.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-04-04T13:05:39.269Z","etag":null,"topics":["flask","logger-backend","logging","python3","spider"],"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/Ron-Chang.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-25T02:30:35.000Z","updated_at":"2021-02-08T15:57:40.000Z","dependencies_parsed_at":"2022-11-03T16:15:16.526Z","dependency_job_id":null,"html_url":"https://github.com/Ron-Chang/Log-Stacker","commit_stats":null,"previous_names":["ron-chang/logstacker"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ron-Chang%2FLog-Stacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ron-Chang%2FLog-Stacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ron-Chang%2FLog-Stacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ron-Chang%2FLog-Stacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ron-Chang","download_url":"https://codeload.github.com/Ron-Chang/Log-Stacker/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247684507,"owners_count":20979073,"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":["flask","logger-backend","logging","python3","spider"],"created_at":"2024-09-26T20:42:52.826Z","updated_at":"2026-02-08T00:32:52.022Z","avatar_url":"https://github.com/Ron-Chang.png","language":"Python","funding_links":["https://paypal.me/RonDevStudio?locale.x=zh_TW","https://www.buymeacoffee.com/ronchang"],"categories":[],"sub_categories":[],"readme":"# Log Stacker\n\u003e A colorful and less settings logger, based on the built-in package `logging`.\n\n## What is this?\nContain the following features with the minimum settings.\n+ stream logger(Colorful Stream)\n+ file logger(strip color tags)\n+ remote logger(In progress)\n\n## How to use?\n### Step 1\n- Install\n```bash\npip install log_stacker\n```\n\n- Import module in your entry point at the top\n\u003eentry point: startup python file, such as `main.py` `run.py` `start_api.py` etc.\n### Step 2\n- Basic setup\n``` python\n\"\"\"\nstart_api.py\n\"\"\"\n\nfrom log_stacker import LogStacker\nLogStacker.logging(__file__)\n```\n\nor\n\n- Advance setup\n``` python\n\"\"\"\nstart_api.py\n\"\"\"\n\nfrom log_stacker import LogStacker\nLogStacker.logging(\n    entry_point='path/to/your/log',\n    stream_level=LogStacker.WARNING,\n    file_level=LogStacker.INFO,\n    remote_level=None\n)\n```\n\n### Step 3\nYou can start logging in anywhere of your project!\n\u003eNote: If you got an initialized warning,\n\u003eplease make sure you initial LogStacker correctly at the begging of the file your are running.\n\n```python\n\"\"\"\ntest.py which is called by start_api.py\n\"\"\"\n\nfrom log_stacker import LogStacker\ntry:\n    1/0\nexcept Exception as e:\n    LogStacker.critical(e)\n    LogStacker.error(e)\n    LogStacker.warning(e, msg='It is a warning!')\n    LogStacker.info('I wanna print something here!')\n    LogStacker.debug()\n```\n\n## History\n|#|      date|version|\n|-|----------|-------|\n|0|2021/02/07| v0.0.1|\n\n#### v0.0.1\n- Beta version\n\nIf you like my work, please consider buying me a coffee or [PayPal](https://paypal.me/RonDevStudio?locale.x=zh_TW)\nThanks for your support! Cheers! 🎉\n\u003ca href=\"https://www.buymeacoffee.com/ronchang\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" align=\"right\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fron-chang%2Flog-stacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fron-chang%2Flog-stacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fron-chang%2Flog-stacker/lists"}