CodeIgniter Forums
Log all activity - 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 all activity (/showthread.php?tid=57102)



Log all activity - El Forum - 02-14-2013

[eluser]peter[/eluser]
Hi guys,

I would like to log any action users do and save it in my database. It means log his session, full page url, sent data (post, get), etc... Where should I save and include this function? In hooks or where? And does CI have this function for logging purposes?

Thank you.


Log all activity - El Forum - 02-15-2013

[eluser]Otemu[/eluser]
Hi,

Codeigniter does have a function for logging function check it out here

There also the Profiling Class that generates a report of queries, post data, etc.

In terms of where to put this function, maybe have a base class and have all your classes that need logging purposes extend this, or use a library or a custom class to keep track of this information


Log all activity - El Forum - 02-16-2013

[eluser]peter[/eluser]
thank you for your reply. I will try it.
I found older library http://code.google.com/p/firestick/. I must check it and try it. I think it will be necessary to update library files for the newest version of CI.