Back to skills
SKILL.md
Log Rotation Config
ASecurityConfigure logrotate for application logs size retention
- 2 stars
- 0 votes
- 0 copies
- 2 views
- Added September 10, 2026
Security analysis
100/100npx -y skills add LoopyLuci/Skills --skill log-rotation-config --agent claude-codeAre you the author of Log Rotation Config?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-log-rotation-config)---
name: log-rotation-config
description: "Configure logrotate for application logs size retention"
---
# Log Rotation Config
## logrotate Config
```ini
/var/log/myapp/*.log {
daily
rotate 7
size 100M
compress
delaycompress
missingok
notifempty
copytruncate
}
```
## Python Timed Rotating
```python
import logging.handlers
handler = logging.handlers.TimedRotatingFileHandler(
"app.log", when="midnight", backupCount=7
)
handler.setFormatter(logging.Formatter("%(asctime)s %(message)s"))
```
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.