xLog: Extended PHP Logging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I've just released the first public version of xLog, a PHP extension that allows extended logging of PHP errors, including Fatal errors.  Output typically includes referral, GET values, URL, and a full backtrace.  Additional information can be included via custom variables by the developer at runtime.  xLog is derived from similar code used for the last couple years at Facebook for faster debugging by developers.  It’s finally reached the point where I believe it’s ready to take the next step into the Open Source community so it can grow and benefit a larger group of people.

I'd like to get get more feedback on use cases, and any problems that might be encountered on different or unusual code.  You can get more information and download the source from:  http://tekrat.com/php/xlog/.  Please contact me with any problems or feedback, and I hope that you all find it useful!  Example error log output is below:

    [15415:0000001:0001] [xlog1.0.0] Fatal PHP Fatal error: Call to undefined function foo() in /www/foo.php on line 3
    (ip: 127.0.0.1)
    (at: localhost/foo.php)
    (referer: <empty>)
    (agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5)
    (post: <empty>)
    (cookies: <empty>)
    trace starts at [/www/foo.php:3]

    #0 in bar at [/www/foo.php:3]
    #1 bar(’somestring’, 10039877, <object>, TRUE), called at [/www/foo.php:5]


Thanks,

-shire

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux