Save logs in database


#1

hello guys ,
i want to save logs in database instead of log file,.
i found Log class and log method that writes into log file ,
how can i use it to insert to database? tnx very much .


#2

Please have a look at this class: https://github.com/owncloud/core/blob/master/lib/private/Log/Syslog.php

Within the config.php you can setup the class which shall be used for logging.


#3

i've done it with editing log method in , lib/Log.php class ,
thank you so much.
the most important part , was decoding exceptions to real string .
BTW , everything is now awesome .