Metadata-Version: 2.4
Name: log-file-cleaner-bijena
Version: 0.1.1
Summary: A Python automation tool to clean old log files safely
Author-email: Bijena Dhewaju <bijenadhewaju181@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/bijenadhewaju/log-file-cleaner-bijena
Project-URL: Issues, https://github.com/bijenadhewaju/log-file-cleaner-bijena/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 🧹 Log File Cleaner

A simple Python automation tool to automatically delete old log files based on their last modified time.

It helps you keep your project folders clean by removing unnecessary `.log` files older than a specified number of days.

---

## 🚀 Features

- Delete log files older than N days
- Safe file filtering (`.log` only)
- Dry-run mode (preview before deletion)
- Simple Python API
- Optional CLI support
- Lightweight and beginner-friendly

---

## 📦 Installation

### From PyPI

```bash
pip install log-file-cleaner
````
🧠 Usage (Python API)
```text
from log_file_cleaner import clean_logs

clean_logs(folder="logs", days=7)
```
---
### 📁 Project Structure
```text
log-file-cleaner/
│
├── log_file_cleaner/
│   ├── __init__.py
│   ├── cleaner.py
│   └── cli.py
│
├── pyproject.toml
├── README.md
├── LICENSE
```

---
## License
This project is licensed under the MIT License.

---
## Author
Bijena Dhewaju - [GitHub](https://github.com/bijenadhewaju)

