Installation

Log4PHP is installed easily:

  • download the package and unpack it.
  • copy the folder src/main/php into the target location of your application, f. e. $YOURAPP/log4php
  • include/require the class log4php/LoggerManager.php in your applications
  • finished :-)

Installation from repository

  • Make sure you have an SVN client installed on your machine
  • Type: svn co http://svn.apache.org/repos/asf/incubator/log4php/trunk log4php
  • Alternative, use TortoiseSVN or Eclipse and check out the directory above
  • copy the folder src/main/php into the target location of your application, f. e. $YOURAPP/log4php
  • include/require the class log4php/LoggerManager.php in your applications