CodeIgniter Forums
Using log4php with code igniter - 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: Using log4php with code igniter (/showthread.php?tid=2659)



Using log4php with code igniter - El Forum - 08-16-2007

[eluser]mazaka[/eluser]
Hi all!

Its the first project I am using CI in, and I like it a lot.

My question tho: On every page request I want a log entry to be written with a handful of variables, such at timestamp, useragent, pageId etc. This is all for statistics reasons, on the live system. not debugging.

Has anyone used the log4php project for this, and where would the the best integreation point be? I started out by including it at the very top of my main layout view, but now I think I should move it to the general controller if possible.

cheers.

Any good loggin ideas are welcome!


Using log4php with code igniter - El Forum - 08-16-2007

[eluser]Michael Wales[/eluser]
I would just use CI's integrated logging - no need to worry with anything else.