{"id":30862317,"url":"https://github.com/indosaram/logxide","last_synced_at":"2026-05-27T05:17:14.775Z","repository":{"id":304130983,"uuid":"1017683003","full_name":"Indosaram/logxide","owner":"Indosaram","description":"Fastest Python logging framework","archived":false,"fork":false,"pushed_at":"2025-07-31T14:21:12.000Z","size":385,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-04T18:29:51.750Z","etag":null,"topics":["logging","pyo3","python","rust"],"latest_commit_sha":null,"homepage":"https://indosaram.github.io/logxide/","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/Indosaram.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-10T23:52:59.000Z","updated_at":"2025-07-31T14:06:15.000Z","dependencies_parsed_at":"2025-07-11T11:38:26.993Z","dependency_job_id":"6505ba84-cd2e-48c5-aeb6-0f214dcae0f5","html_url":"https://github.com/Indosaram/logxide","commit_stats":null,"previous_names":["indosaram/logxide"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Indosaram/logxide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indosaram%2Flogxide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indosaram%2Flogxide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indosaram%2Flogxide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indosaram%2Flogxide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Indosaram","download_url":"https://codeload.github.com/Indosaram/logxide/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Indosaram%2Flogxide/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274066376,"owners_count":25216447,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["logging","pyo3","python","rust"],"created_at":"2025-09-07T17:14:22.416Z","updated_at":"2026-05-27T05:17:14.766Z","avatar_url":"https://github.com/Indosaram.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LogXide\n\n**2.7x faster Python logging, powered by Rust.**\n\nSame stdlib API. Same `getLogger`. Same format strings. Just faster.\n\n```python\n# Before                              # After\nimport logging                        from logxide import logging\n\nlogging.basicConfig(level=logging.INFO)\nlogger = logging.getLogger('myapp')\nlogger.info('Hello, world!')          # 2.7x faster. Same code.\n```\n\n[![PyPI](https://img.shields.io/pypi/v/logxide)](https://pypi.org/project/logxide/)\n[![Python](https://img.shields.io/pypi/pyversions/logxide)](https://pypi.org/project/logxide/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![CI](https://github.com/Indosaram/logxide/actions/workflows/ci.yml/badge.svg)](https://github.com/Indosaram/logxide/actions/workflows/ci.yml)\n\n## Installation\n\n```bash\npip install logxide\n```\n\n```bash\n# With Sentry integration\npip install logxide[sentry]\n```\n\n## Performance\n\nReal-world file logging benchmarks (Python 3.12, 100K iterations):\n\n| Scenario | LogXide | Picologging (C) | stdlib logging | vs Pico | vs stdlib |\n|----------|---------|-----------------|----------------|---------|-----------|\n| Simple | 446,135 ops/s | 372,020 ops/s | 157,220 ops/s | **+20%** | **+184%** |\n| Structured | 412,235 ops/s | 357,193 ops/s | 153,547 ops/s | **+15%** | **+168%** |\n| Error | 426,294 ops/s | 361,053 ops/s | 155,332 ops/s | **+18%** | **+174%** |\n\n20% faster than Picologging (C-based, Microsoft). 2.7x faster than stdlib. [Full benchmarks →](docs/benchmarks.md)\n\n## Works With\n\nLogXide intercepts stdlib logging — most libraries work without changes.\n\n| Framework / Library | Status | Notes |\n|---------------------|--------|-------|\n| Flask | ✅ | `app.logger` automatically intercepted |\n| Django | ✅ | `LOGGING` dictConfig supported |\n| FastAPI / Uvicorn | ✅ | All uvicorn loggers intercepted |\n| SQLAlchemy | ✅ | SQL query logging via `echo=True` |\n| requests / httpx | ✅ | HTTP connection logs captured |\n| boto3 / botocore | ✅ | AWS SDK logs captured |\n| Sentry | ✅ | **Native integration** — auto-detects SDK |\n| Celery | ⚠️ | Requires `setup_logging` signal ([guide](docs/third-party-compatibility.md#celery)) |\n| pytest | ⚠️ | Use `caplog_logxide` instead of `caplog` |\n\n[Full compatibility guide for 20+ libraries →](docs/third-party-compatibility.md)\n\n## Built-in Sentry Integration\n\nNo extra handlers. No configuration. Just works.\n\n```python\nimport sentry_sdk\nsentry_sdk.init(dsn=\"your-dsn\")\n\nfrom logxide import logging\n\nlogger = logging.getLogger(__name__)\nlogger.error(\"This is automatically sent to Sentry\")\n```\n\n- Auto-detects Sentry SDK\n- WARNING+ sent as events, INFO as breadcrumbs\n- Full stack traces and custom context\n\n## Native OpenTelemetry Support\n\nShip logs to any OTLP-compatible backend with zero dependencies:\n\n```python\nfrom logxide import OTLPHandler\n\nhandler = OTLPHandler(\n    url=\"http://localhost:4318/v1/logs\",\n    service_name=\"my-service\"\n)\n```\n\n## Quick Start\n\n```python\nfrom logxide import logging\n\n# Basic setup — same API as stdlib\nlogging.basicConfig(\n    level=logging.INFO,\n    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'\n)\n\nlogger = logging.getLogger('myapp')\nlogger.info('Hello from LogXide!')\nlogger.warning('This works exactly like stdlib logging')\n```\n\n### Custom fields with `extra`\n\n```python\nlogger.info(\"User logged in\", extra={\n    \"user_id\": 12345,\n    \"ip\": \"192.168.1.1\",\n    \"metadata\": {\"browser\": \"Chrome\", \"version\": 120}\n})\n```\n\n### HTTP log shipping\n\n```python\nfrom logxide import HTTPHandler\n\nhandler = HTTPHandler(\n    url=\"https://logs.example.com\",\n    global_context={\"app\": \"myapp\", \"env\": \"production\"},\n    transform_callback=lambda records: {\n        \"logs\": [{\"msg\": r[\"msg\"], \"level\": r[\"levelname\"]} for r in records]\n    }\n)\n```\n\n## What's Different from stdlib\n\nLogXide reimplements Python's logging in Rust for speed. The API is the same, but some advanced stdlib patterns aren't supported:\n\n| Feature | Status |\n|---------|--------|\n| `getLogger`, `info`, `debug`, `warning`, `error`, `critical` | ✅ Same API |\n| `basicConfig`, format strings, levels, filters | ✅ Same API |\n| `FileHandler`, `StreamHandler`, `RotatingFileHandler` | ✅ Rust-native |\n| `HTTPHandler`, `OTLPHandler` | ✅ Rust-native, high throughput |\n| Custom Python handlers via `addHandler()` | ⚠️ Works, but bypasses Rust pipeline |\n| Subclassing `LogRecord` or `Logger` | ❌ Rust types, not subclassable |\n| pytest `caplog` fixture | ⚠️ Use `caplog_logxide` instead |\n\n**Instead of subclassing LogRecord**, use `extra={}` for custom fields, `global_context` for metadata, or `transform_callback` for output transformation.\n\n## Compatibility\n\n- **Python**: 3.12, 3.13, 3.14, 3.15 (All fully tested and supported)\n- **Platforms**: macOS, Linux, Windows\n- **Dependencies**: None (Rust compiled into native extension)\n\n## Documentation\n\n- [Usage Guide](docs/usage.md) — Complete API guide\n- [Integration Guide](docs/integrations/index.md) — Flask, Django, FastAPI\n- [Third-Party Compatibility](docs/third-party-compatibility.md) — 20+ libraries\n- [Performance Benchmarks](docs/benchmarks.md) — Detailed analysis\n- [Architecture](docs/architecture.md) — Technical design\n- [API Reference](docs/reference.md) — Full reference\n\n## Contributing\n\n```bash\ngit clone https://github.com/Indosaram/logxide\ncd logxide\npip install maturin\nmaturin develop\npytest tests/\n```\n\nSee [development guide](docs/development.md) for details.\n\n## License\n\nMIT License — see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findosaram%2Flogxide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findosaram%2Flogxide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findosaram%2Flogxide/lists"}