I want to integrate Log4php to my codeigniter application.

Is there a library in codeigniter to do this?

有帮助吗?

解决方案

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top