Metadata-Version: 2.4
Name: log-cleanup
Version: 0.1.0
Summary: Automated log file cleanup with scheduling support
Author-email: Swetha T <tswetha3188@gmail.com>
License: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: System Administrators
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 :: Systems Administration
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: APScheduler>=3.10.0
Requires-Dist: tzlocal>=5.0.0
Dynamic: license-file

# Log Cleanup

Automated log file cleanup with optional scheduling support.

## Features

- Automated cleanup of old log files
- Cron or interval scheduling
- Dry-run mode
- Basic file statistics
- Cleanup log support

## Installation

```bash
pip install log-cleanup
```

## Usage

```bash
log-cleanup --log-path /var/logs --retention-days 30 --run-now
log-cleanup --log-path /var/logs --retention-days 60 --schedule
log-cleanup --log-path /var/logs --run-now --dry-run
log-cleanup --log-path /var/logs --stats
```

## Python API

```python
from log_cleanup import LogCleaner

cleaner = LogCleaner("/var/logs", retention_days=30)
result = cleaner.clean()
print(result)
```
