开发者

How do I integrate codeigniter and log4php?

I want to integrate Log4php to m开发者_StackOverflow社区y codeigniter application.

Is there a library in codeigniter to do this?


I'm using this: https://github.com/fukata/ci-log4php


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜