Welcome Guest, Not a member yet? Register   Sign In
Using log4php with code igniter
#1

[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!
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB