Large diffs are not rendered by default.

@@ -286,7 +286,6 @@ protected function findLoggers($priority, $category)
// Check to make sure the priority matches the logger.
if ($priority & $rules->priorities)
{

// If either there are no set categories (meaning all) or the specific category is set, add this logger.
if (empty($category) || empty($rules->categories) || in_array($category, $rules->categories))
{
@@ -0,0 +1,62 @@
<?php
/**
* @package Joomla.Platform
* @subpackage Log
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/

namespace Joomla\log\loggers;

use Joomla\log\JLogger;

use Joomla\log\JLog;

use Joomla\log\JLogEntry;

use ChromePHP\ChromePHP;

defined('JPATH_PLATFORM') or die;

/**
* Joomla Echo logger class.
*
* @package Joomla.Platform
* @subpackage Log
* @since 11.1
*/
class JLoggerChromephp extends JLogger
{
/**
* Method to add an entry to the log.
*
* @param JLogEntry $entry The log entry object to add to the log.
*
* @return void
*
* @since 12.1
*/
public function addEntry(JLogEntry $entry)
{
$message = $this->priorities[$entry->priority]
. ': '
. $entry->message
. (empty($entry->category) ? '' : ' [' . $entry->category . ']');

if ($entry->priority == JLog::WARNING)
{
$method = 'warn';
}
elseif ($entry->priority == JLog::ERROR)
{
$method = 'error';
}
else
{
$method = 'log';
}

ChromePhp::$method($message);
}
}