{"id":16431794,"url":"https://github.com/drkostas/termcolor-logger","last_synced_at":"2025-08-17T21:32:55.150Z","repository":{"id":57474256,"uuid":"438462745","full_name":"drkostas/termcolor-logger","owner":"drkostas","description":"A logger with text formatting using termcolor.","archived":false,"fork":false,"pushed_at":"2022-01-30T01:42:24.000Z","size":62,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T06:40:07.493Z","etag":null,"topics":["color-log","color-logger","color-logging","logger","logging","logging-library"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/termcolor-logger/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drkostas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-15T02:00:43.000Z","updated_at":"2024-09-14T16:06:12.000Z","dependencies_parsed_at":"2022-09-12T19:30:28.242Z","dependency_job_id":null,"html_url":"https://github.com/drkostas/termcolor-logger","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkostas%2Ftermcolor-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkostas%2Ftermcolor-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkostas%2Ftermcolor-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drkostas%2Ftermcolor-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drkostas","download_url":"https://codeload.github.com/drkostas/termcolor-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230174081,"owners_count":18184808,"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":["color-log","color-logger","color-logging","logger","logging","logging-library"],"created_at":"2024-10-11T08:32:35.890Z","updated_at":"2024-12-17T19:41:14.109Z","avatar_url":"https://github.com/drkostas.png","language":"Python","funding_links":["https://www.buymeacoffee.com/drkostas"],"categories":[],"sub_categories":[],"readme":"# Termcolor Logger\n[![Downloads](https://static.pepy.tech/personalized-badge/termcolor-logger?period=total\u0026units=international_system\u0026left_color=grey\u0026right_color=red\u0026left_text=Downloads)](https://pepy.tech/project/termcolor-logger)\n[![GitHub license](https://img.shields.io/badge/license-Apache-blue.svg)](https://github.com/drkostas/termcolor-logger/blob/master/LICENSE)\n\n## About \u003ca name = \"about\"\u003e\u003c/a\u003e\n\nA logger with text formatting using\ntermcolor. [PYPI Package](https://pypi.org/project/termcolor-logger/)\n\n## Table of Contents\n\n+ [Using the library](#using)\n    + [Installing and using the library](#install_use)\n+ [Manually install the library](#manual_install)\n    + [Prerequisites](#prerequisites)\n    + [Install the requirements](#installing_req)\n+ [Update PyPI package](#pypi)\n+ [License](#license)\n\n## Using the library \u003ca name = \"using\"\u003e\u003c/a\u003e\n\n### Installing and using the library \u003ca name = \"install_use\"\u003e\u003c/a\u003e\n\nFirst, you need to install the library either using pip:\n\n```shell\n$ pip install termcolor_logger\n```\n\nThen, import it and use it like so:\n\n```python\nfrom termcolor_logger import ColorLogger\n\nfancy_logger = ColorLogger(logger_name='FancyMain',\n                           color='blue',\n                           on_color='on_red',\n                           attrs=['underline', 'reverse', 'bold'])\n\nColorLogger.setup_logger(log_path=\"hi.log\", debug=True, clear_log=True)\n\nfancy_logger.info(\"You can customize the logger like this\")\nfancy_logger.info(\"You can customize each log message differently\",\n                  color=\"green\", on_color=\"on_white\", attrs=[])\n```\n\n## Manually install the library \u003ca name = \"manual_install\"\u003e\u003c/a\u003e\n\nThese instructions will get you a copy of the project up and running on your local machine for\ndevelopment and testing purposes.\n\n### Prerequisites \u003ca name = \"prerequisites\"\u003e\u003c/a\u003e\n\nYou need to have a machine with\n[anaconda](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html) installed and\nany Bash based shell (e.g. zsh) installed.\n\n```ShellSession\n\n$ conda -V\nconda 4.10.1\n\n$ echo $SHELL\n/usr/bin/zsh\n\n```\n\n### Install the requirements \u003ca name = \"installing_req\"\u003e\u003c/a\u003e\n\nAll the installation steps are being handled by\nthe [Makefile](https://github.com/drkostas/termcolor-logger/blob/master/Makefile).\n\nFirst, modify the python version (`min_python`) and everything else you need in\nthe [settings.ini](https://github.com/drkostas/termcolor-logger/blob/master/settings.ini).\n\nThen, execute the following commands:\n\n```ShellSession\n$ make create_env\n$ conda activate termcolor_logger\n$ make dist\n```\n\nNow you are ready to use and modify the library.\n\n## Update PyPI package \u003ca name = \"pypi\"\u003e\u003c/a\u003e\n\nThis is mainly for future reference for the developers of this project. First,\ncreate a file called `~/.pypirc` with your pypi login details, as follows:\n\n```\n[pypi]\nusername = your_pypi_username\npassword = your_pypi_password\n```\n\nThen, modify the python version (`min_python`), project status (`status`), release version (`version`) \nand everything else you need in\nthe [settings.ini](https://github.com/drkostas/termcolor-logger/blob/master/settings.ini).\n\nFinally, execute the following commands:\n\n```ShellSession\n$ make create_env\n$ conda activate termcolor_logger\n$ make release\n```\n\nFor a dev release, change the `testing_version` and instead of `make release`, run `make release_test`.\n\n## License \u003ca name = \"license\"\u003e\u003c/a\u003e\n\nThis project is licensed under the Apache License - see\nthe [LICENSE](https://github.com/drkostas/termcolor-logger/blob/master/LICENSE) file for\ndetails.\n\n\u003ca href=\"https://www.buymeacoffee.com/drkostas\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrkostas%2Ftermcolor-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrkostas%2Ftermcolor-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrkostas%2Ftermcolor-logger/lists"}