Question

I want to integrate Log4php to my codeigniter application.

Is there a library in codeigniter to do this?

Was it helpful?

Solution

OTHER TIPS

We have been using log4php with CI as it gives us ability to keep an eye on error/notices while clients do NOT see them as clients get annoyed looking at those harmless notices.

We tried using Log4PHP directly with CI but it was bit tricky. To add to CTAPbIu_MABP's answer, fukata's ci-log4php is much simpler to integrate as it gives readily usable helper/libraries/config files that can be moved directly inside your application.

Here is a detailed blog entry about this.

http://tudip.blogspot.in/2012/05/log4php-with-codeigniter.html

Hope it helps someone.

for completer procedure of implementing log4php in CI refer the below link

setting-up-log4php-with-code-igniter

but I would give more preference to the inbuilt mechanism of CI used for logging error

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top