![]() |
log4php integration to CI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: log4php integration to CI (/showthread.php?tid=31070) |
log4php integration to CI - El Forum - 06-05-2010 [eluser]sramos[/eluser] Hi all! I made an integration of log4php, im not sure its the best way and wanted some advices and scolds about the thing i did.. I put the apache-log4php-2.0.0-incubating as a library and added a wrapper php library class : Code: <?php I call it on controllers and models as a normal library class and use de logger as the normal way: Code: private $logger; //logger The [code]log4php.properties[code] is under my application folder It works as i expected it to work, but im not sure is the correct way to do it. If someone wants to throw me roses or tomatos its welcome log4php integration to CI - El Forum - 05-10-2012 [eluser]Tudip Technologies[/eluser] Hi Nani, Please look at this small blog entry with sample code: http://tudip.blogspot.in/2012/05/log4php-with-codeigniter.html log4php integration to CI - El Forum - 07-02-2013 [eluser]Unknown[/eluser] for better and clear solution refer the below link http://roomforcreativity.wordpress.com/2012/06/14/setting-up-log4php-with-code-igniter/ |