Metadata-Version: 2.4
Name: loglens-py
Version: 1.0.0
Summary: Smart log analyzer with anomaly detection, terminal dashboards, and HTML reports - debug production issues faster
Author: LogLens
License: MIT
Project-URL: Homepage, https://github.com/loglens/loglens
Project-URL: Repository, https://github.com/loglens/loglens
Project-URL: Issues, https://github.com/loglens/loglens/issues
Keywords: log,log-analysis,analyzer,devtools,cli,anomaly-detection,dashboard
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Logging
Classifier: Topic :: System :: Monitoring
Classifier: Topic :: Software Development :: Debuggers
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: rich>=13.0.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: jinja2>=3.1.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"

# LogLens — Smart Log Analyzer for Developers

Stop scrolling through thousands of log lines. LogLens finds the needles in the haystack.

## What It Does

- **Auto-detects** 6+ log formats (JSON, nginx, syslog, Python-style, generic, level-prefixed)
- **Detects anomalies** — error bursts, log spikes, repeated errors, silent periods, escalation
- **Beautiful terminal dashboards** — level distribution, top messages, error breakdowns
- **HTML reports** — share findings with your team
- **Real-time monitoring** — watch log files live

## Quick Start

```bash
pip install loglens

# Analyze any log file
loglens analyze server.log

# Detect and show anomalies
loglens anomalies server.log

# Watch a log in real-time
loglens watch /var/log/app.log

# Export HTML report
loglens analyze server.log --report report.html
```

## Why Developers Pay For This

- Replaces manual `grep`ing through logs
- Finds problems you'd miss reading manually
- Works locally — no cloud service, no data leaving your machine
- Handles messy, multi-format logs that Logstash/Fluentd struggle with

## Use Cases

- Debugging production incidents from log dumps
- CI/CD pipeline log analysis
- Finding intermittent errors in test logs
- Team reports on application health
- Security auditing (finding attack patterns)

## Library Usage

```python
from loglens import analyze, parse

# Analyze a file
report = analyze("server.log")
print(report.found_errors)
print(report.anomalies)

# Parse raw log content
entries = list(parse("2024-06-15 14:30 ERROR connection failed\n"))
```

## Requirements

Python 3.8+

## License

Commercial — purchase required for production use
