Projects / log4php


Log4php is a PHP port of Log4j, the most popular Java logging framework. It supports configuration through XML and properties files (with the same structure as log4j) and custom Configurators. File, RollingFile, DailyFile, Echo, Console, Mail, PEAR::Db, PHP error, Syslog or NT events, and socket appenders are supported. Simple, TTCC, Pattern, Html, and Xml Layouts are supported. It also supports Filters, custom Levels, and Loggers. Internal debugging can be switched on and off. Log4php can be used inside a class or inside a main/sub function.

Operating Systems

Recent releases

  •  10 Dec 2003 15:21

    Release Notes: This release adds a LoggerDOMConfigurator APPENDER-REF element as an APPENDER_REF alias. Various changes have been made to obtain PHP5 compatibility.

    •  29 Oct 2003 01:28

      Release Notes: This version fixes LoggerDOMConfigurator CONFIGURATOR element's namespace handling, the AppenderSkeleton::setThreshold() threshold assignment, the LoggerAppenderMail::close() mail() 'to' param, and the remoteHostname and port params getter/setter in LoggerAppenderSocket.

      •  24 Sep 2003 21:14

        Release Notes: This release adds a "log4jNamespace" option to LoggerAppenderSocket, fixes LoggerXmlLayout CDATA rendering, and adds new tests.

        •  15 Sep 2003 20:23

          Release Notes: Bugs and malfunctions have been fixed. LoggerDatePatternConverter supports microseconds. Appenders report errors via LoggerLog::debug. LoggerLevelMatchFilter and LoggerLevelRangeFilter have been added. Experimental hierarchy serialization support has been added.

          •  11 Sep 2003 10:09

            Release Notes: The init configuration system was rewritten to be more like log4j. The LoggerLevel class was recoded, and Basic and Property configurators were added. Logger factory support was added, and some bugs were fixed.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.