calebj-cogs icon indicating copy to clipboard operation
calebj-cogs copied to clipboard

[activitylog] Suggestion: management commands

Open MrSnorlax opened this issue 8 years ago • 2 comments

Here is an idea you should make a !logclear (channel) command to delete that channels log and a !logshow (channel) command so it’s possible to delete a channels Log and also to print a channels log

MrSnorlax avatar Jul 16 '17 21:07 MrSnorlax

The logs ~~are~~ can get rather large. I can add an upload, tail and other features at some point.

calebj avatar Nov 20 '17 02:11 calebj

I added log rotation in the develop branch as of 1.6.0 of this cog, so for periods of a day or week, it should be a lot more manageable. The logs themselves are far too large to be printed, but they can be uploaded as attachments (if under 8MB). I don't think I want to implement a clear command, but you can clean up the files manually.

If I have time, I kind of want to to log things in sqlite, which would be able to dynamically generate logfiles for any desired date ranges with custom formatting/fields, filter on user, channel, and event type, clear an arbitrary amount of history, and other benefits.

calebj avatar Jul 31 '18 05:07 calebj