# Logger Library #
## What is this? ##
A simple module for color logging to the console/file
## Installation ##
```bash
pip install ilyxalogger
```
## Quick Guide ##
```python
Logger = Logger(colorize=True, write_to_logfile=True, log_filename="Logger.log")
Logger.log_info(message="Info")
Logger.log_success(message="Success")
Logger.log_warning(message="Warning")
Logger.log_error(message="Error", error=ValueError, solution="Potential solution")
```
Also if you add a symbol `$`, the framed text will be highlighted in color.
Example of output modification:
```python
color = "\033[0;35m" # ANSII PURPLE
bg_color = "\033[41m" # ANSII RED, color for text in $..$
message="Some $warning$ message"
title="MyWarning"
log_warning(message=message, title=title, color=color, bg_color=bg_color)
```
Output example:
![image](https://github.com/user-attachments/assets/23ec14e0-d554-404d-87f9-511e45ef801b)
Raw data
{
"_id": null,
"home_page": "https://github.com/ILYXAAA/logger",
"name": "ilyxalogger",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "logging console output colorize log",
"author": "ILYXAAA",
"author_email": "ilyagolybnichev@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/cb/3b/fea35425ec1413621068f4670637b9d9c5ad24b22fb8fca877992a395ea3/ilyxalogger-1.0.0.tar.gz",
"platform": null,
"description": "# Logger Library #\r\n\r\n## What is this? ##\r\nA simple module for color logging to the console/file\r\n\r\n## Installation ##\r\n```bash\r\npip install ilyxalogger\r\n```\r\n\r\n## Quick Guide ##\r\n```python \r\nLogger = Logger(colorize=True, write_to_logfile=True, log_filename=\"Logger.log\")\r\n\r\nLogger.log_info(message=\"Info\")\r\nLogger.log_success(message=\"Success\")\r\nLogger.log_warning(message=\"Warning\")\r\nLogger.log_error(message=\"Error\", error=ValueError, solution=\"Potential solution\")\r\n```\r\nAlso if you add a symbol `$`, the framed text will be highlighted in color.\r\n\r\nExample of output modification:\r\n```python\r\ncolor = \"\\033[0;35m\" # ANSII PURPLE\r\nbg_color = \"\\033[41m\" # ANSII RED, color for text in $..$\r\nmessage=\"Some $warning$ message\"\r\ntitle=\"MyWarning\"\r\n\r\nlog_warning(message=message, title=title, color=color, bg_color=bg_color)\r\n```\r\n\r\nOutput example:\r\n\r\n![image](https://github.com/user-attachments/assets/23ec14e0-d554-404d-87f9-511e45ef801b)\r\n",
"bugtrack_url": null,
"license": null,
"summary": "This is the simplest module for quick console log output.",
"version": "1.0.0",
"project_urls": {
"GitHub": "https://github.com/ILYXAAA/",
"Homepage": "https://github.com/ILYXAAA/logger"
},
"split_keywords": [
"logging",
"console",
"output",
"colorize",
"log"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "daf3cf60bb8f73aa0dc412ab4189ec42b92cfd3a1935404ed63ba2fd465e052d",
"md5": "d237834600331c6e2561e5e8d68a1f68",
"sha256": "8f3a9b72fdbeab657fe0a9421a2017f38f8cf2d367f455ed8a2dd211cf57b0f3"
},
"downloads": -1,
"filename": "ilyxalogger-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d237834600331c6e2561e5e8d68a1f68",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3200,
"upload_time": "2024-10-04T10:48:32",
"upload_time_iso_8601": "2024-10-04T10:48:32.811495Z",
"url": "https://files.pythonhosted.org/packages/da/f3/cf60bb8f73aa0dc412ab4189ec42b92cfd3a1935404ed63ba2fd465e052d/ilyxalogger-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cb3bfea35425ec1413621068f4670637b9d9c5ad24b22fb8fca877992a395ea3",
"md5": "d238163ce11d35865622711dc6b70df7",
"sha256": "d447cba3fbd78e85c6140223e0b462abc278a03f58e4551e32715f77f0f002c2"
},
"downloads": -1,
"filename": "ilyxalogger-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "d238163ce11d35865622711dc6b70df7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 2904,
"upload_time": "2024-10-04T10:48:34",
"upload_time_iso_8601": "2024-10-04T10:48:34.719422Z",
"url": "https://files.pythonhosted.org/packages/cb/3b/fea35425ec1413621068f4670637b9d9c5ad24b22fb8fca877992a395ea3/ilyxalogger-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-04 10:48:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ILYXAAA",
"github_project": "logger",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "ilyxalogger"
}