我如何集成codeigniter和log4php


How do I integrate codeigniter and log4php?

我想将Log4php集成到我的codeigniter应用程序中。

是否有一个库在codeigniter做到这一点?

我使用这个:https://github.com/fukata/ci-log4php

我们一直在CI中使用log4php,因为它使我们能够在客户端看不到错误/通知时保持关注,因为客户端看到这些无害的通知会感到恼火。

我们尝试直接使用Log4PHP与CI,但它有点棘手。为了补充CTAPbIu_MABP的答案,fukata的ci-log4php集成起来要简单得多,因为它提供了易于使用的帮助器/库/配置文件,可以直接移动到应用程序中。

这是一个详细的博客条目。

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

希望对大家有所帮助。

有关在CI中实现log4php的完整过程,请参阅下面的链接

setting-up-log4php-with-code-igniter

,但我更倾向于CI用于记录错误的内置机制