* @copyright 2012 Apache Software Foundation * @license Apache License, Version 2.0 * @version SVN: $Id:$ * @link http://sourcemint.com/github.com/firephp/firephp/1:1.0.0b1rc6/-docs/Configuration/Constants * @link https://github.com/Seldaek/monolog/blob/master/src/Monolog/Handler/FirePHPHandler.php * @since Feb 22, 2012 * @internal CodeSniffs as PEAR, adapted to Apache style. Phpmd clean. */ //Change next line to URL path following domain. I.e. chop off 'http://localhost' define('INSIGHT_SERVER_PATH', $_SERVER['REQUEST_URI']); //define('INSIGHT_SERVER_PATH', $_SERVER['SCRIPT_NAME']); define('INSIGHT_DEBUG', true); //Comment, after config is debugged, to remove 'Flushing headers' define('INSIGHT_IPS', '*'); //Your IP here for extra security //Works, but replace next line with free key from Developer Companion, for security on live sites define('INSIGHT_AUTHKEYS', '*'); define('INSIGHT_PATHS', dirname(__FILE__)); //EDIT YOUR FirePHP LOCATION HERE // If using ZIP Archive //TODO: Add 'lib/' of extracted archive to include path require_once 'FirePHP/Init.php'; //Must be declared before log4php // If using PHAR Archive (php 5.3+) //require_once('phar://.../firephp.phar/FirePHP/Init.php'); // TODO: Replace ----^^^ require_once dirname(__FILE__).'/../../main/php/Logger.php'; Logger::configure(dirname(__FILE__).'/../resources/appender_firephp.xml'); ?>

FirePHP appender test & configuration

Requirements

Untested (or not supported)

Instructions

If you see a greeting in Firebug, you can now return to work!

debug('Congrats! Enjoy log4php with FirePHP!');