Best way to make log system?
#8

Quote:
Originally Posted by kvann
View Post
That's a very cool idea, I've never thought of this approach to chat logs. My logger was supposed to be as flexible as possible, that's why it stores the data in such way. Yours however has a very specific purpose so hardcoding the table and its columns is not an issue. Your table is okay the way it is, the only issue I have with it is that you are duplicating a lot of data for each receiver, if you wanted to be more space-efficient and add some more flexibility to your system, you could normalise the table and do this:




Also, if you use parallel queries (mysql_pquery), you don't need a separate connection for the logger, it automatically opens as many connections as your connection pool size is anyway.

Good luck!
Thanks for idea! I will definitely try that!

And yeah, I'm using mysql_pquery, but I prefer to keep my logs in separate database, cause I think there will be alot of them in future, just to improve readability in theory. Thanks again!
Reply


Messages In This Thread
Best way to make log system? - by Marshas - 07.02.2019, 21:44
Re: Best way to make log system? - by Marshas - 08.02.2019, 19:46
Re: Best way to make log system? - by TheToretto - 08.02.2019, 20:10
Re: Best way to make log system? - by kristo - 08.02.2019, 20:32
Re: Best way to make log system? - by Marshas - 08.02.2019, 22:37
Re: Best way to make log system? - by DRIFT_HUNTER - 09.02.2019, 12:33
Re: Best way to make log system? - by kristo - 09.02.2019, 13:17
Re: Best way to make log system? - by Marshas - 09.02.2019, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)