loggerXio


NameloggerXio JSON
Version 1.0.8 PyPI version JSON
download
home_pagehttps://github.com/wxxoxo/loggerXio
SummaryTelegram-Powered Python Logger - Send Logs & print() Output Straight to Your Chat in Real Time!
upload_time2025-08-14 22:59:33
maintainerNone
docs_urlNone
authorArise
requires_python>=3.7
licenseMIT
keywords telegram telebot pytelegrambotapi logger logging log logs python-logger python-logging python-log real-time realtime live-logging live-logger telegram-logger telegram-logging chat-logger chat-logging bot-logger bot-logging monitoring monitor remote-logging remote-logger print-capture capture-print capture-output sysout stderr stdout debugging debug debug-tool debug-logger system-logger application-logger python-bot telegram-bot automation automation-logger notification notify error-notify error-logging error-logger dev-tools developer-tools developer-logger python-tools python-debugging
VCS
bugtrack_url
requirements pyTelegramBotAPI
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## πŸ“¦ loggerXio

πŸš€ Send your Python **logs** and **print statements** directly to **Telegram** using a bot.  
No complex setup β€” just **import**, set your bot token & chat ID, and start logging.  

---

## πŸ›  1. Installation

```bash
pip install loggerXio
```

---

## ⚑ 2. Quick Setup

```python
from loggerXio import setup_logger

# Replace with your bot token and chat ID
logger = setup_logger(bot_token="YOUR_BOT_TOKEN", chat_id=123456789)
```

βœ… That's it! πŸŽ‰ Now all logs and `print()` messages will be sent to your Telegram chat.

---

## βš™ 3. Parameters

All parameters default to `True` (except `level`, which defaults to `logging.INFO`).  
You can turn any of them off by setting them to `False` in `setup_logger()`.  

---

### πŸ”‘ **bot_token** (str)
Your Telegram bot token (get it from [πŸ€– BotFather](https://t.me/BotFather)).

**Example:**
```python
setup_logger("bot_token=YOUR_BOT_TOKEN", chat_id=123456789)
```

---

### πŸ†” **chat_id** (int)
Your Telegram chat ID (can be a group or private chat).  

**Example:**
```python
setup_logger(bot_token="YOUR_BOT_TOKEN", chat_id=987654321)
```

---

### ⏰ **time** (bool)
Whether to include a timestamp in your logs. Default: `True`.  

**Example (disable time):**
```python
setup_logger(bot_token="YOUR_BOT_TOKEN", chat_id=123456789, time=False)
```

---

### πŸ–₯ **show_logs** (bool)
Also print logs to your console. Default: `True`.  

**Example (disable console output):**
```python
setup_logger(bot_token="YOUR_BOT_TOKEN", chat_id=123456789, show_logs=False)
```

---

### πŸ“ **fetch_print** (bool)
Capture `print()` messages and send them to Telegram. Default: `True`.  

**Example (disable capturing print):**
```python
setup_logger(bot_token="YOUR_BOT_TOKEN", chat_id=123456789, fetch_print=False)
```

---

### πŸ“’ **level_info** (bool)
If `True`, uses standard logging levels (`INFO`, `WARNING`, `ERROR`).  
If `False`, only captures print messages. Default: `True`.  

**Example (capture only print statements):**
```python
setup_logger(bot_token="YOUR_BOT_TOKEN", chat_id=123456789, level_info=False)
```

---

## 🧩 4. Full Setup Example (All Defaults)

```python
from loggerXio import setup_logger
import logging
import time

# Setup with all default parameters
logger = setup_logger(
    bot_token="YOUR_BOT_TOKEN",
    chat_id=123456789,
    time=True,
    show_logs=True,
    fetch_print=True,
    level_info=True
)

# Test logging
logger.info("Hello from loggerXio!")
print("This is a print message.")

time.sleep(5) #Just for test script
```

---

## πŸ“Œ Notes
- If you disable `level_info=True`, normal logging levels won't be used β€” only `print()` messages will be captured.
- Works in **private chats**, **groups**, **channels**.
- Uses threads to avoid blocking your main program.
- always when script start, first log will take few seconds for send log.
---

## ✨ Credits & Rights
Β© 2025 All Rights Reserved.  
Developed and Created by

**─ㅀ𝐀ㅀʀㅀΙͺγ…€κœ±γ…€α΄‡γ…€οΎ’**.  

[![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/wxxoxo)
[![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/wxxoxo)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wxxoxo/loggerXio",
    "name": "loggerXio",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "telegram, telebot, pytelegrambotapi, logger, logging, log, logs, , python-logger, python-logging, python-log, real-time, realtime, , live-logging, live-logger, telegram-logger, telegram-logging, , chat-logger, chat-logging, bot-logger, bot-logging, , monitoring, monitor, remote-logging, remote-logger, , print-capture, capture-print, capture-output, , sysout, stderr, stdout, , debugging, debug, debug-tool, debug-logger, , system-logger, application-logger, , python-bot, telegram-bot, , automation, automation-logger, , notification, notify, error-notify, , error-logging, error-logger, , dev-tools, developer-tools, developer-logger, , python-tools, python-debugging",
    "author": "Arise",
    "author_email": "arise.wxxoxo@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/10/92/5e883d1dc97119cfd7e32431198f64690710da29ca7a57740dc06966c030/loggerxio-1.0.8.tar.gz",
    "platform": null,
    "description": "## \ud83d\udce6 loggerXio\n\n\ud83d\ude80 Send your Python **logs** and **print statements** directly to **Telegram** using a bot.  \nNo complex setup \u2014 just **import**, set your bot token & chat ID, and start logging.  \n\n---\n\n## \ud83d\udee0 1. Installation\n\n```bash\npip install loggerXio\n```\n\n---\n\n## \u26a1 2. Quick Setup\n\n```python\nfrom loggerXio import setup_logger\n\n# Replace with your bot token and chat ID\nlogger = setup_logger(bot_token=\"YOUR_BOT_TOKEN\", chat_id=123456789)\n```\n\n\u2705 That's it! \ud83c\udf89 Now all logs and `print()` messages will be sent to your Telegram chat.\n\n---\n\n## \u2699 3. Parameters\n\nAll parameters default to `True` (except `level`, which defaults to `logging.INFO`).  \nYou can turn any of them off by setting them to `False` in `setup_logger()`.  \n\n---\n\n### \ud83d\udd11 **bot_token** (str)\nYour Telegram bot token (get it from [\ud83e\udd16 BotFather](https://t.me/BotFather)).\n\n**Example:**\n```python\nsetup_logger(\"bot_token=YOUR_BOT_TOKEN\", chat_id=123456789)\n```\n\n---\n\n### \ud83c\udd94 **chat_id** (int)\nYour Telegram chat ID (can be a group or private chat).  \n\n**Example:**\n```python\nsetup_logger(bot_token=\"YOUR_BOT_TOKEN\", chat_id=987654321)\n```\n\n---\n\n### \u23f0 **time** (bool)\nWhether to include a timestamp in your logs. Default: `True`.  \n\n**Example (disable time):**\n```python\nsetup_logger(bot_token=\"YOUR_BOT_TOKEN\", chat_id=123456789, time=False)\n```\n\n---\n\n### \ud83d\udda5 **show_logs** (bool)\nAlso print logs to your console. Default: `True`.  \n\n**Example (disable console output):**\n```python\nsetup_logger(bot_token=\"YOUR_BOT_TOKEN\", chat_id=123456789, show_logs=False)\n```\n\n---\n\n### \ud83d\udcdd **fetch_print** (bool)\nCapture `print()` messages and send them to Telegram. Default: `True`.  \n\n**Example (disable capturing print):**\n```python\nsetup_logger(bot_token=\"YOUR_BOT_TOKEN\", chat_id=123456789, fetch_print=False)\n```\n\n---\n\n### \ud83d\udce2 **level_info** (bool)\nIf `True`, uses standard logging levels (`INFO`, `WARNING`, `ERROR`).  \nIf `False`, only captures print messages. Default: `True`.  \n\n**Example (capture only print statements):**\n```python\nsetup_logger(bot_token=\"YOUR_BOT_TOKEN\", chat_id=123456789, level_info=False)\n```\n\n---\n\n## \ud83e\udde9 4. Full Setup Example (All Defaults)\n\n```python\nfrom loggerXio import setup_logger\nimport logging\nimport time\n\n# Setup with all default parameters\nlogger = setup_logger(\n    bot_token=\"YOUR_BOT_TOKEN\",\n    chat_id=123456789,\n    time=True,\n    show_logs=True,\n    fetch_print=True,\n    level_info=True\n)\n\n# Test logging\nlogger.info(\"Hello from loggerXio!\")\nprint(\"This is a print message.\")\n\ntime.sleep(5) #Just for test script\n```\n\n---\n\n## \ud83d\udccc Notes\n- If you disable `level_info=True`, normal logging levels won't be used \u2014 only `print()` messages will be captured.\n- Works in **private chats**, **groups**, **channels**.\n- Uses threads to avoid blocking your main program.\n- always when script start, first log will take few seconds for send log.\n---\n\n## \u2728 Credits & Rights\n\u00a9 2025 All Rights Reserved.  \nDeveloped and Created by\n\n**\u2500\u3164\ud835\udc00\u3164\u0280\u3164\u026a\u3164\ua731\u3164\u1d07\u3164\uff92**.  \n\n[![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/wxxoxo)\n[![GitHub](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/wxxoxo)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Telegram-Powered Python Logger - Send Logs & print() Output Straight to Your Chat in Real Time!",
    "version": "1.0.8",
    "project_urls": {
        "Documentation": "https://github.com/wxxoxo/loggerXio#readme",
        "Homepage": "https://github.com/wxxoxo/loggerXio",
        "Source": "https://github.com/wxxoxo/loggerXio",
        "Support": "https://t.me/wxxoxo"
    },
    "split_keywords": [
        "telegram",
        " telebot",
        " pytelegrambotapi",
        " logger",
        " logging",
        " log",
        " logs",
        " ",
        " python-logger",
        " python-logging",
        " python-log",
        " real-time",
        " realtime",
        " ",
        " live-logging",
        " live-logger",
        " telegram-logger",
        " telegram-logging",
        " ",
        " chat-logger",
        " chat-logging",
        " bot-logger",
        " bot-logging",
        " ",
        " monitoring",
        " monitor",
        " remote-logging",
        " remote-logger",
        " ",
        " print-capture",
        " capture-print",
        " capture-output",
        " ",
        " sysout",
        " stderr",
        " stdout",
        " ",
        " debugging",
        " debug",
        " debug-tool",
        " debug-logger",
        " ",
        " system-logger",
        " application-logger",
        " ",
        " python-bot",
        " telegram-bot",
        " ",
        " automation",
        " automation-logger",
        " ",
        " notification",
        " notify",
        " error-notify",
        " ",
        " error-logging",
        " error-logger",
        " ",
        " dev-tools",
        " developer-tools",
        " developer-logger",
        " ",
        " python-tools",
        " python-debugging"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1b77c94c9b0a23afd0d3278628fd4cbbb979890430e72fb635a460f11344404d",
                "md5": "56207acd273cbc9b2a3c2b414b9bc967",
                "sha256": "3a12e709e25e77838600d4775df978f1210b4a5f7699ca4c0bb795fc3ba6b7f2"
            },
            "downloads": -1,
            "filename": "loggerxio-1.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "56207acd273cbc9b2a3c2b414b9bc967",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4932,
            "upload_time": "2025-08-14T22:59:32",
            "upload_time_iso_8601": "2025-08-14T22:59:32.286091Z",
            "url": "https://files.pythonhosted.org/packages/1b/77/c94c9b0a23afd0d3278628fd4cbbb979890430e72fb635a460f11344404d/loggerxio-1.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "10925e883d1dc97119cfd7e32431198f64690710da29ca7a57740dc06966c030",
                "md5": "872a14baae478c434a09fc31fce9b963",
                "sha256": "8b9bd8530449f70d75d472c29f494dcb26b64df951f73dfd8ffa430c938fe9bf"
            },
            "downloads": -1,
            "filename": "loggerxio-1.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "872a14baae478c434a09fc31fce9b963",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 4747,
            "upload_time": "2025-08-14T22:59:33",
            "upload_time_iso_8601": "2025-08-14T22:59:33.001366Z",
            "url": "https://files.pythonhosted.org/packages/10/92/5e883d1dc97119cfd7e32431198f64690710da29ca7a57740dc06966c030/loggerxio-1.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-14 22:59:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wxxoxo",
    "github_project": "loggerXio",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "pyTelegramBotAPI",
            "specs": [
                [
                    ">=",
                    "4.0.0"
                ]
            ]
        }
    ],
    "lcname": "loggerxio"
}
        
Elapsed time: 0.74402s