CodeIgniter Forums
Log core error messages in database - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Log core error messages in database (/showthread.php?tid=53314)

Pages: 1 2


Log core error messages in database - El Forum - 09-23-2012

[eluser]BigJobbies[/eluser]
Im looking for the same sort of function ... save logs to the db instead of the filesystem.

I had a look at Akens post_controller_constructor hook but am unsure as to what table this logs to ... any chance of a db schema to go along with the hook code?

Cheers,


Log core error messages in database - El Forum - 09-23-2012

[eluser]solid9[/eluser]
Interesting I want to try hacking the log.php library too.
I will try this some other time.


Log core error messages in database - El Forum - 10-29-2012

[eluser]Aken[/eluser]
[quote author="BigJobbies" date="1348402482"]Im looking for the same sort of function ... save logs to the db instead of the filesystem.

I had a look at Akens post_controller_constructor hook but am unsure as to what table this logs to ... any chance of a db schema to go along with the hook code?

Cheers,[/quote]
I didn't include any DB code - just read through and you'll see the comments that specify where your DB code should go. What you put there is completely up to you.