rrrix
New Member
- Joined
- Jul 11, 2010
- Messages
- 3,449
- Reaction score
- 61
In my other projects tend to generate tons of debugging data when building plugins and such. I found my DB logs directory was nearly 4GB from when I first installed DB.
So, this plugin will:
* GZip compress log files that haven't been updated in the last 30 minutes (e.g. logs from previous DB sessions) for easy uploading to forums as attachments for you nubs
* Delete log files older than 1 day
* Uses it's own threads for compression/deletion so it doesn't slow down the BehaviorTree.
Above settings can be easily tweaked - just open the .cs and find these:
parameters to TimeSpan are: TimeSpan(days, hours, minutes, seconds);
It's fully compatible with running more than 1 instance from a shared DB directory that runs multiple bots.
Enjoy,
rrrix
So, this plugin will:
* GZip compress log files that haven't been updated in the last 30 minutes (e.g. logs from previous DB sessions) for easy uploading to forums as attachments for you nubs
* Delete log files older than 1 day
* Uses it's own threads for compression/deletion so it doesn't slow down the BehaviorTree.
Above settings can be easily tweaked - just open the .cs and find these:
parameters to TimeSpan are: TimeSpan(days, hours, minutes, seconds);
Code:
// Compress after 30 minutes of not being updated
static TimeSpan compressAfter = new TimeSpan(0, 0, 30, 0);
// Delete after 1 day
static TimeSpan deleteAfter = new TimeSpan(1, 0, 0, 0);
It's fully compatible with running more than 1 instance from a shared DB directory that runs multiple bots.
Enjoy,
rrrix
Attachments
Last edited:






