Project

General

Profile

Feature #1398

Allow to store the logs in plain text files

Added by clopez about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Quassel Core
Target version:
-
Start date:
02/05/2016
Due date:
% Done:

0%

Estimated time:
OS:
Linux

Description

Hi,

The current way that quassel has to store the logs (sqlite) is bloated and shows its problems when you have years worth of logs.
Each time I want to grep some log I have to run this script dumplog.py to convert it to text. It takes a long time to get the full log (just for one channel) and meanwhile it is trying to get the log, it locks the DB and makes quassel core stop working and disconnect. A tiny disaster.

So, instead of doing this, I would love to have all the logs stored in text files directly so I can just grep them when I want without having to do extra steps.
This will help also quassel core to not have to deal with this big database. Reading the last N lines of a text file is much simple than having to deal with an ever growing sqlite DB (its currently now at 7GB and growing).

I would love to have an option to use just text files instead of sqlite for storing the logs on quassel core.

The layout could be something as:

$LOGDIR/servername1/#channelname1.log
$LOGDIR/servername1/nickname1.log
$LOGDIR/servername2/#channelname1.log
$LOGDIR/servername2/nickname1.log

What do you think about this idea?

Also available in: Atom PDF