Ueland / VikingBot

Vikingbot is yet another simple PHP based IRC bot with support for plugins and secure IRC servers. The bot requires Unix/Linux shell access with PHP support and SSL support in PHP for use against secure IRC servers.
GNU General Public License v3.0
40 stars 6 forks source link

Fix log rotation #5

Open Ueland opened 12 years ago

Ueland commented 12 years ago

All bot output is today sent to logs/vikingbot.log, the log is cleared on restart but nothing more. The log should be rotated on a specified basis and on restart instead of simply nuked.

ginsterbusch commented 11 years ago

Let's just say .. I'm working on it .. ^_^ Aside of a fuckload of other things.

cu, w0lf.

hashworks commented 9 years ago

If you want to stay on the Linux only track people could use the logrotate service and configure it in /etc/logrotate.d. But I wouldn't stay on that track.

Ueland commented 9 years ago

@hashworks agreed, i preffer to simply read all contents of the log file, prune it, then move the content over to a new log file with todays date on it or something like that