Version Notes
Some fixes and updates for ChromePHP and FirePHP
Download this release
Release Info
| Developer | Jens Averkamp |
| Extension | ITM_Logger |
| Version | 0.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 0.1.0 to 0.1.1
- app/code/community/Itm/Logger/etc/config.xml +18 -1
- lib/Itm/ChromePhp/ChromePhp.php +55 -46
- lib/Itm/FirePhp/CHANGELOG +152 -0
- lib/Itm/FirePhp/CREDITS +12 -0
- lib/Itm/FirePhp/README +32 -0
- package.xml +6 -6
app/code/community/Itm/Logger/etc/config.xml
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Itm_Logger>
|
| 6 |
-
<version>0.1.
|
| 7 |
</Itm_Logger>
|
| 8 |
</modules>
|
| 9 |
<global>
|
|
@@ -28,4 +28,21 @@
|
|
| 28 |
</logger>
|
| 29 |
</itm>
|
| 30 |
</default>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
</config>
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Itm_Logger>
|
| 6 |
+
<version>0.1.1</version>
|
| 7 |
</Itm_Logger>
|
| 8 |
</modules>
|
| 9 |
<global>
|
| 28 |
</logger>
|
| 29 |
</itm>
|
| 30 |
</default>
|
| 31 |
+
<adminhtml>
|
| 32 |
+
<acl>
|
| 33 |
+
<resources>
|
| 34 |
+
<admin>
|
| 35 |
+
<children>
|
| 36 |
+
<config>
|
| 37 |
+
<children>
|
| 38 |
+
<itm>
|
| 39 |
+
<title>ITM Logger Options</title>
|
| 40 |
+
</itm>
|
| 41 |
+
</children>
|
| 42 |
+
</config>
|
| 43 |
+
</children>
|
| 44 |
+
</admin>
|
| 45 |
+
</resources>
|
| 46 |
+
</acl>
|
| 47 |
+
</adminhtml>
|
| 48 |
</config>
|
lib/Itm/ChromePhp/ChromePhp.php
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* Copyright
|
| 4 |
*
|
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
* you may not use this file except in compliance with the License.
|
| 7 |
* You may obtain a copy of the License at
|
| 8 |
*
|
| 9 |
-
*
|
| 10 |
*
|
| 11 |
* Unless required by applicable law or agreed to in writing, software
|
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -26,12 +26,12 @@ class ChromePhp
|
|
| 26 |
/**
|
| 27 |
* @var string
|
| 28 |
*/
|
| 29 |
-
const VERSION = '
|
| 30 |
|
| 31 |
/**
|
| 32 |
* @var string
|
| 33 |
*/
|
| 34 |
-
const HEADER_NAME = 'X-
|
| 35 |
|
| 36 |
/**
|
| 37 |
* @var string
|
|
@@ -73,6 +73,11 @@ class ChromePhp
|
|
| 73 |
*/
|
| 74 |
const GROUP_COLLAPSED = 'groupCollapsed';
|
| 75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
/**
|
| 77 |
* @var string
|
| 78 |
*/
|
|
@@ -88,7 +93,7 @@ class ChromePhp
|
|
| 88 |
*/
|
| 89 |
protected $_json = array(
|
| 90 |
'version' => self::VERSION,
|
| 91 |
-
'columns' => array('
|
| 92 |
'rows' => array()
|
| 93 |
);
|
| 94 |
|
|
@@ -139,7 +144,7 @@ class ChromePhp
|
|
| 139 |
public static function getInstance()
|
| 140 |
{
|
| 141 |
if (self::$_instance === null) {
|
| 142 |
-
self::$_instance = new
|
| 143 |
}
|
| 144 |
return self::$_instance;
|
| 145 |
}
|
|
@@ -147,46 +152,37 @@ class ChromePhp
|
|
| 147 |
/**
|
| 148 |
* logs a variable to the console
|
| 149 |
*
|
| 150 |
-
* @param
|
| 151 |
-
* @param mixed value
|
| 152 |
-
* @param string severity ChromePhp::LOG || ChromePhp::WARN || ChromePhp::ERROR
|
| 153 |
* @return void
|
| 154 |
*/
|
| 155 |
public static function log()
|
| 156 |
{
|
| 157 |
$args = func_get_args();
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
// save precious bytes
|
| 161 |
-
if ($severity == self::LOG) {
|
| 162 |
-
$severity = '';
|
| 163 |
-
}
|
| 164 |
-
|
| 165 |
-
return self::_log($args + array('type' => $severity));
|
| 166 |
}
|
| 167 |
|
| 168 |
/**
|
| 169 |
* logs a warning to the console
|
| 170 |
*
|
| 171 |
-
* @param
|
| 172 |
-
* @param mixed value
|
| 173 |
* @return void
|
| 174 |
*/
|
| 175 |
public static function warn()
|
| 176 |
{
|
| 177 |
-
|
|
|
|
| 178 |
}
|
| 179 |
|
| 180 |
/**
|
| 181 |
* logs an error to the console
|
| 182 |
*
|
| 183 |
-
* @param
|
| 184 |
-
* @param mixed value
|
| 185 |
* @return void
|
| 186 |
*/
|
| 187 |
public static function error()
|
| 188 |
{
|
| 189 |
-
|
|
|
|
| 190 |
}
|
| 191 |
|
| 192 |
/**
|
|
@@ -196,17 +192,20 @@ class ChromePhp
|
|
| 196 |
*/
|
| 197 |
public static function group()
|
| 198 |
{
|
| 199 |
-
|
|
|
|
| 200 |
}
|
| 201 |
|
| 202 |
/**
|
| 203 |
* sends an info log
|
| 204 |
*
|
| 205 |
-
* @param
|
|
|
|
| 206 |
*/
|
| 207 |
public static function info()
|
| 208 |
{
|
| 209 |
-
|
|
|
|
| 210 |
}
|
| 211 |
|
| 212 |
/**
|
|
@@ -216,7 +215,8 @@ class ChromePhp
|
|
| 216 |
*/
|
| 217 |
public static function groupCollapsed()
|
| 218 |
{
|
| 219 |
-
|
|
|
|
| 220 |
}
|
| 221 |
|
| 222 |
/**
|
|
@@ -226,7 +226,19 @@ class ChromePhp
|
|
| 226 |
*/
|
| 227 |
public static function groupEnd()
|
| 228 |
{
|
| 229 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 230 |
}
|
| 231 |
|
| 232 |
/**
|
|
@@ -235,30 +247,21 @@ class ChromePhp
|
|
| 235 |
* @param string $type
|
| 236 |
* @return void
|
| 237 |
*/
|
| 238 |
-
protected static function _log(array $args)
|
| 239 |
{
|
| 240 |
-
$type = $args['type'];
|
| 241 |
-
unset($args['type']);
|
| 242 |
-
|
| 243 |
// nothing passed in, don't do anything
|
| 244 |
if (count($args) == 0 && $type != self::GROUP_END) {
|
| 245 |
return;
|
| 246 |
}
|
| 247 |
|
| 248 |
-
// default to single
|
| 249 |
-
$label = null;
|
| 250 |
-
$value = isset($args[0]) ? $args[0] : '';
|
| 251 |
-
|
| 252 |
$logger = self::getInstance();
|
| 253 |
|
| 254 |
-
// if there are two values passed in then the first one is the label
|
| 255 |
-
if (count($args) == 2) {
|
| 256 |
-
$label = $args[0];
|
| 257 |
-
$value = $args[1];
|
| 258 |
-
}
|
| 259 |
-
|
| 260 |
$logger->_processed = array();
|
| 261 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 262 |
|
| 263 |
$backtrace = debug_backtrace(false);
|
| 264 |
$level = $logger->getSetting(self::BACKTRACE_LEVEL);
|
|
@@ -268,7 +271,7 @@ class ChromePhp
|
|
| 268 |
$backtrace_message = $backtrace[$level]['file'] . ' : ' . $backtrace[$level]['line'];
|
| 269 |
}
|
| 270 |
|
| 271 |
-
$logger->_addRow($
|
| 272 |
}
|
| 273 |
|
| 274 |
/**
|
|
@@ -363,18 +366,24 @@ class ChromePhp
|
|
| 363 |
* @var mixed
|
| 364 |
* @return void
|
| 365 |
*/
|
| 366 |
-
protected function _addRow(
|
| 367 |
{
|
| 368 |
// if this is logged on the same line for example in a loop, set it to null to save space
|
| 369 |
if (in_array($backtrace, $this->_backtraces)) {
|
| 370 |
$backtrace = null;
|
| 371 |
}
|
| 372 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 373 |
if ($backtrace !== null) {
|
| 374 |
$this->_backtraces[] = $backtrace;
|
| 375 |
}
|
| 376 |
|
| 377 |
-
$row = array($
|
| 378 |
|
| 379 |
$this->_json['rows'][] = $row;
|
| 380 |
$this->_writeHeader($this->_json);
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
+
* Copyright 2010-2013 Craig Campbell
|
| 4 |
*
|
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
* you may not use this file except in compliance with the License.
|
| 7 |
* You may obtain a copy of the License at
|
| 8 |
*
|
| 9 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
*
|
| 11 |
* Unless required by applicable law or agreed to in writing, software
|
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 26 |
/**
|
| 27 |
* @var string
|
| 28 |
*/
|
| 29 |
+
const VERSION = '4.1.0';
|
| 30 |
|
| 31 |
/**
|
| 32 |
* @var string
|
| 33 |
*/
|
| 34 |
+
const HEADER_NAME = 'X-ChromeLogger-Data';
|
| 35 |
|
| 36 |
/**
|
| 37 |
* @var string
|
| 73 |
*/
|
| 74 |
const GROUP_COLLAPSED = 'groupCollapsed';
|
| 75 |
|
| 76 |
+
/**
|
| 77 |
+
* @var string
|
| 78 |
+
*/
|
| 79 |
+
const TABLE = 'table';
|
| 80 |
+
|
| 81 |
/**
|
| 82 |
* @var string
|
| 83 |
*/
|
| 93 |
*/
|
| 94 |
protected $_json = array(
|
| 95 |
'version' => self::VERSION,
|
| 96 |
+
'columns' => array('log', 'backtrace', 'type'),
|
| 97 |
'rows' => array()
|
| 98 |
);
|
| 99 |
|
| 144 |
public static function getInstance()
|
| 145 |
{
|
| 146 |
if (self::$_instance === null) {
|
| 147 |
+
self::$_instance = new self();
|
| 148 |
}
|
| 149 |
return self::$_instance;
|
| 150 |
}
|
| 152 |
/**
|
| 153 |
* logs a variable to the console
|
| 154 |
*
|
| 155 |
+
* @param mixed $data,... unlimited OPTIONAL number of additional logs [...]
|
|
|
|
|
|
|
| 156 |
* @return void
|
| 157 |
*/
|
| 158 |
public static function log()
|
| 159 |
{
|
| 160 |
$args = func_get_args();
|
| 161 |
+
return self::_log('', $args);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
}
|
| 163 |
|
| 164 |
/**
|
| 165 |
* logs a warning to the console
|
| 166 |
*
|
| 167 |
+
* @param mixed $data,... unlimited OPTIONAL number of additional logs [...]
|
|
|
|
| 168 |
* @return void
|
| 169 |
*/
|
| 170 |
public static function warn()
|
| 171 |
{
|
| 172 |
+
$args = func_get_args();
|
| 173 |
+
return self::_log(self::WARN, $args);
|
| 174 |
}
|
| 175 |
|
| 176 |
/**
|
| 177 |
* logs an error to the console
|
| 178 |
*
|
| 179 |
+
* @param mixed $data,... unlimited OPTIONAL number of additional logs [...]
|
|
|
|
| 180 |
* @return void
|
| 181 |
*/
|
| 182 |
public static function error()
|
| 183 |
{
|
| 184 |
+
$args = func_get_args();
|
| 185 |
+
return self::_log(self::ERROR, $args);
|
| 186 |
}
|
| 187 |
|
| 188 |
/**
|
| 192 |
*/
|
| 193 |
public static function group()
|
| 194 |
{
|
| 195 |
+
$args = func_get_args();
|
| 196 |
+
return self::_log(self::GROUP, $args);
|
| 197 |
}
|
| 198 |
|
| 199 |
/**
|
| 200 |
* sends an info log
|
| 201 |
*
|
| 202 |
+
* @param mixed $data,... unlimited OPTIONAL number of additional logs [...]
|
| 203 |
+
* @return void
|
| 204 |
*/
|
| 205 |
public static function info()
|
| 206 |
{
|
| 207 |
+
$args = func_get_args();
|
| 208 |
+
return self::_log(self::INFO, $args);
|
| 209 |
}
|
| 210 |
|
| 211 |
/**
|
| 215 |
*/
|
| 216 |
public static function groupCollapsed()
|
| 217 |
{
|
| 218 |
+
$args = func_get_args();
|
| 219 |
+
return self::_log(self::GROUP_COLLAPSED, $args);
|
| 220 |
}
|
| 221 |
|
| 222 |
/**
|
| 226 |
*/
|
| 227 |
public static function groupEnd()
|
| 228 |
{
|
| 229 |
+
$args = func_get_args();
|
| 230 |
+
return self::_log(self::GROUP_END, $args);
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
/**
|
| 234 |
+
* sends a table log
|
| 235 |
+
*
|
| 236 |
+
* @param string value
|
| 237 |
+
*/
|
| 238 |
+
public static function table()
|
| 239 |
+
{
|
| 240 |
+
$args = func_get_args();
|
| 241 |
+
return self::_log(self::TABLE, $args);
|
| 242 |
}
|
| 243 |
|
| 244 |
/**
|
| 247 |
* @param string $type
|
| 248 |
* @return void
|
| 249 |
*/
|
| 250 |
+
protected static function _log($type, array $args)
|
| 251 |
{
|
|
|
|
|
|
|
|
|
|
| 252 |
// nothing passed in, don't do anything
|
| 253 |
if (count($args) == 0 && $type != self::GROUP_END) {
|
| 254 |
return;
|
| 255 |
}
|
| 256 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
$logger = self::getInstance();
|
| 258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
$logger->_processed = array();
|
| 260 |
+
|
| 261 |
+
$logs = array();
|
| 262 |
+
foreach ($args as $arg) {
|
| 263 |
+
$logs[] = $logger->_convert($arg);
|
| 264 |
+
}
|
| 265 |
|
| 266 |
$backtrace = debug_backtrace(false);
|
| 267 |
$level = $logger->getSetting(self::BACKTRACE_LEVEL);
|
| 271 |
$backtrace_message = $backtrace[$level]['file'] . ' : ' . $backtrace[$level]['line'];
|
| 272 |
}
|
| 273 |
|
| 274 |
+
$logger->_addRow($logs, $backtrace_message, $type);
|
| 275 |
}
|
| 276 |
|
| 277 |
/**
|
| 366 |
* @var mixed
|
| 367 |
* @return void
|
| 368 |
*/
|
| 369 |
+
protected function _addRow(array $logs, $backtrace, $type)
|
| 370 |
{
|
| 371 |
// if this is logged on the same line for example in a loop, set it to null to save space
|
| 372 |
if (in_array($backtrace, $this->_backtraces)) {
|
| 373 |
$backtrace = null;
|
| 374 |
}
|
| 375 |
|
| 376 |
+
// for group, groupEnd, and groupCollapsed
|
| 377 |
+
// take out the backtrace since it is not useful
|
| 378 |
+
if ($type == self::GROUP || $type == self::GROUP_END || $type == self::GROUP_COLLAPSED) {
|
| 379 |
+
$backtrace = null;
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
if ($backtrace !== null) {
|
| 383 |
$this->_backtraces[] = $backtrace;
|
| 384 |
}
|
| 385 |
|
| 386 |
+
$row = array($logs, $backtrace, $type);
|
| 387 |
|
| 388 |
$this->_json['rows'][] = $row;
|
| 389 |
$this->_writeHeader($this->_json);
|
lib/Itm/FirePhp/CHANGELOG
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
TODO:
|
| 3 |
+
|
| 4 |
+
- Fix code indenting in PHP 4 code
|
| 5 |
+
- Port maxDepth option to PHP 4 code
|
| 6 |
+
|
| 7 |
+
2010-10-26 - Release Version: 0.3.2
|
| 8 |
+
|
| 9 |
+
2010-10-12 - Release Version: 0.3.2rc6
|
| 10 |
+
|
| 11 |
+
- (Issue 154) getRequestHeader uses "getallheaders" even though it doesn't always exist. [25m]
|
| 12 |
+
|
| 13 |
+
2010-10-09 - Release Version: 0.3.2rc5
|
| 14 |
+
|
| 15 |
+
- (Issue 153) FirePHP incorrectly double-encodes UTF8 when mbstring.func_overload is enabled
|
| 16 |
+
|
| 17 |
+
2010-10-08 - Release Version: 0.3.2rc4
|
| 18 |
+
|
| 19 |
+
- Trigger upgrade message if part of FirePHP 1.0
|
| 20 |
+
- Removed FirePHP/Init.php inclusion logic and only load FirePHP.class.php if not already loaded
|
| 21 |
+
|
| 22 |
+
2010-07-19 - Release Version: 0.3.2rc3
|
| 23 |
+
|
| 24 |
+
- Fixed FirePHP/Init.php inclusion logic
|
| 25 |
+
|
| 26 |
+
2010-07-19 - Release Version: 0.3.2rc2
|
| 27 |
+
|
| 28 |
+
- (Issue 145) maxDepth option
|
| 29 |
+
- Changed maxObjectDepth and maxArrayDepth option defaults to 5
|
| 30 |
+
- Fixed code indentation
|
| 31 |
+
|
| 32 |
+
2010-03-05 - Release Version: 0.3.2rc1
|
| 33 |
+
|
| 34 |
+
- (Issue 114) Allow options to be passed on to basic logging wrappers
|
| 35 |
+
- (Issue 122) Filter objectStack property of FirePHP class
|
| 36 |
+
- (Issue 123) registerErrorHandler(false) by default
|
| 37 |
+
- Added setOption() and getOption() methods
|
| 38 |
+
- (Issue 117) dump() method argument validation
|
| 39 |
+
- Started adding PHPUnit tests
|
| 40 |
+
- Some refactoring to support unit testing
|
| 41 |
+
- Deprecated setProcessorUrl() and setRendererUrl()
|
| 42 |
+
- Check User-Agent and X-FirePHP-Version header to detect FirePHP on client
|
| 43 |
+
- (Issue 135) FirePHP 0.4.3 with Firebug 1.5 changes user agent on the fly
|
| 44 |
+
- (Issue 112) Error Predefined Constants Not available for PHP 5.x versions
|
| 45 |
+
|
| 46 |
+
2008-06-14 - Release Version: 0.3.1
|
| 47 |
+
|
| 48 |
+
- (Issue 108) ignore class name case in object filter
|
| 49 |
+
|
| 50 |
+
2009-05-11 - Release Version: 0.3
|
| 51 |
+
2009-05-01 - Release Version: 0.3.rc.1
|
| 52 |
+
|
| 53 |
+
- (Issue 90) PHP4 compatible version of FirePHPCore
|
| 54 |
+
- (Issue 98) Thrown exceptions don't send an HTTP 500 if the FirePHP exception handler is enabled
|
| 55 |
+
- (Issue 85) Support associative arrays in encodeTable method in FirePHP.class.php
|
| 56 |
+
- (Issue 66) Add a new getOptions() public method in API
|
| 57 |
+
- (Issue 82) Define $this->options outside of __construct
|
| 58 |
+
- (Issue 72) Message error if group name is null
|
| 59 |
+
- (Issue 68) registerErrorHandler() and registerExceptionHandler() should returns previous handlers defined
|
| 60 |
+
- (Issue 69) Add the missing register handler in the triumvirate (error, exception, assert)
|
| 61 |
+
- (Issue 75) [Error & Exception Handling] Option to not exit script execution
|
| 62 |
+
- (Issue 83) Exception handler can't throw exceptions
|
| 63 |
+
- (Issue 80) Auto/Pre collapsing groups AND Custom group row colors
|
| 64 |
+
|
| 65 |
+
2008-11-09 - Release Version: 0.2.1
|
| 66 |
+
|
| 67 |
+
- (Issue 70) Problem when logging resources
|
| 68 |
+
|
| 69 |
+
2008-10-21 - Release Version: 0.2.0
|
| 70 |
+
|
| 71 |
+
- Updated version to 0.2.0
|
| 72 |
+
- Switched to using __sleep instead of __wakeup
|
| 73 |
+
- Added support to exclude object members when encoding
|
| 74 |
+
- Add support to enable/disable logging
|
| 75 |
+
|
| 76 |
+
2008-10-17 - Release Version: 0.2.b.8
|
| 77 |
+
|
| 78 |
+
- New implementation for is_utf8()
|
| 79 |
+
- (Issue 55) maxObjectDepth Option not working correctly when using TABLE and EXCEPTION Type
|
| 80 |
+
- Bugfix for max[Object|Array]Depth when encoding nested array/object graphs
|
| 81 |
+
- Bugfix for FB::setOptions()
|
| 82 |
+
|
| 83 |
+
2008-10-16 - Release Version: 0.2.b.7
|
| 84 |
+
|
| 85 |
+
- (Issue 45) Truncate dump when string have non utf8 cars
|
| 86 |
+
- (Issue 52) logging will not work when firephp object gets stored in the session.
|
| 87 |
+
|
| 88 |
+
2008-10-16 - Release Version: 0.2.b.6
|
| 89 |
+
|
| 90 |
+
- (Issue 37) Display file and line information for each log message
|
| 91 |
+
- (Issue 51) Limit output of object graphs
|
| 92 |
+
- Bugfix for encoding object members set to NULL|false|''
|
| 93 |
+
|
| 94 |
+
2008-10-14 - Release Version: 0.2.b.5
|
| 95 |
+
|
| 96 |
+
- Updated JsonStream wildfire protocol to be more robust
|
| 97 |
+
- (Issue 33) PHP error notices running demos
|
| 98 |
+
- (Issue 48) Warning: ReflectionProperty::getValue() expects exactly 1 parameter, 0 given
|
| 99 |
+
|
| 100 |
+
2008-10-08 - Release Version: 0.2.b.4
|
| 101 |
+
|
| 102 |
+
- Bugfix for logging objects with recursion
|
| 103 |
+
|
| 104 |
+
2008-10-08 - Release Version: 0.2.b.3
|
| 105 |
+
|
| 106 |
+
- (Issue 43) Notice message in 0.2b2
|
| 107 |
+
- Added support for PHP's native json_encode() if available
|
| 108 |
+
- Revised object encoder to detect object recursion
|
| 109 |
+
|
| 110 |
+
2008-10-07 - Release Version: 0.2.b.2
|
| 111 |
+
|
| 112 |
+
- (Issue 28) Need solution for logging private and protected object variables
|
| 113 |
+
- Added trace() and table() aliases in FirePHP class
|
| 114 |
+
- (Issue 41) Use PHP doc in FirePHP
|
| 115 |
+
- (Issue 39) Static logging method for object oriented API
|
| 116 |
+
|
| 117 |
+
2008-10-01 - Release Version: 0.2.b.1
|
| 118 |
+
|
| 119 |
+
- Added support for error and exception handling
|
| 120 |
+
- Updated min PHP version for PEAR package to 5.2
|
| 121 |
+
- Added version constant for library
|
| 122 |
+
- Gave server library it's own wildfire plugin namespace
|
| 123 |
+
- Migrated communication protocol to Wildfire JsonStream
|
| 124 |
+
- Added support for console groups using "group" and "groupEnd"
|
| 125 |
+
- Added support for log, info, warn and error logging aliases
|
| 126 |
+
- (Issue 29) problem with TRACE when using with error_handler
|
| 127 |
+
- (Issue 33) PHP error notices running demos
|
| 128 |
+
- (Issue 12) undefined index php notice
|
| 129 |
+
- Removed closing ?> php tags
|
| 130 |
+
- (Issue 13) the code in the fb() function has a second return statement that will never be reached
|
| 131 |
+
|
| 132 |
+
2008-07-30 - Release Version: 0.1.1.3
|
| 133 |
+
|
| 134 |
+
- Include __className property in JSON string if variable was an object
|
| 135 |
+
- Bugfix - Mis-spelt "Exception" in JSON encoding code
|
| 136 |
+
|
| 137 |
+
2008-06-13 - Release Version: 0.1.1.1
|
| 138 |
+
|
| 139 |
+
- Bugfix - Standardize windows paths in stack traces
|
| 140 |
+
- Bugfix - Display correct stack trace info in windows environments
|
| 141 |
+
- Bugfix - Check $_SERVER['HTTP_USER_AGENT'] before returning
|
| 142 |
+
|
| 143 |
+
2008-06-13 - Release Version: 0.1.1
|
| 144 |
+
|
| 145 |
+
- Added support for FirePHP::TRACE log style
|
| 146 |
+
- Changed license to New BSD License
|
| 147 |
+
|
| 148 |
+
2008-06-06 - Release Version: 0.0.2
|
| 149 |
+
|
| 150 |
+
- Bugfix - Added usleep() to header writing loop to ensure unique index
|
| 151 |
+
- Bugfix - Ensure chunk_split does not generate trailing "\n" with empty data header
|
| 152 |
+
- Added support for FirePHP::TABLE log style
|
lib/Itm/FirePhp/CREDITS
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_______________________________
|
| 2 |
+
F i r e P H P C o r e
|
| 3 |
+
|
| 4 |
+
Current Development
|
| 5 |
+
-------------------
|
| 6 |
+
|
| 7 |
+
Christoph Dorn <christoph@christophdorn.com>
|
| 8 |
+
Michael Day <manveru.alma@gmail.com>
|
| 9 |
+
|
| 10 |
+
If you've done work on FirePHPCore and you are not listed here,
|
| 11 |
+
please feel free to add yourself.
|
| 12 |
+
|
lib/Itm/FirePhp/README
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Version: 0.3.2
|
| 3 |
+
|
| 4 |
+
------------------------------------------------------
|
| 5 |
+
Requirements
|
| 6 |
+
------------------------------------------------------
|
| 7 |
+
|
| 8 |
+
Client Side:
|
| 9 |
+
|
| 10 |
+
- Firefox - http://www.getfirefox.com/
|
| 11 |
+
- Firebug - http://www.getfirebug.com/
|
| 12 |
+
- FirePHP - http://www.firephp.org/
|
| 13 |
+
|
| 14 |
+
Server Side:
|
| 15 |
+
|
| 16 |
+
- PHP 5 (complete functionality)
|
| 17 |
+
- PHP 4 (most functionality)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
------------------------------------------------------
|
| 21 |
+
Install Tutorial
|
| 22 |
+
------------------------------------------------------
|
| 23 |
+
|
| 24 |
+
http://www.firephp.org/HQ/Install.htm
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
------------------------------------------------------
|
| 28 |
+
Support
|
| 29 |
+
------------------------------------------------------
|
| 30 |
+
|
| 31 |
+
http://forum.firephp.org/
|
| 32 |
+
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>ITM_Logger</name>
|
| 4 |
-
<version>0.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>BSD</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>This Extension enable the logging with ChromePHP and FirePHP.</summary>
|
| 10 |
<description>This Extension enable the logging with ChromePHP and FirePHP.</description>
|
| 11 |
-
<notes>ChromePHP and FirePHP
|
| 12 |
-
<authors><author><name>Jens Averkamp</name><user>Zeichen32</user><email>j.averkamp@itm-systems.com</email></author></authors>
|
| 13 |
-
<date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magelib"><dir name="Itm"><dir name="ChromePhp"><file name="ChromePhp.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>ITM_Logger</name>
|
| 4 |
+
<version>0.1.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>BSD</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>This Extension enable the logging with ChromePHP and FirePHP.</summary>
|
| 10 |
<description>This Extension enable the logging with ChromePHP and FirePHP.</description>
|
| 11 |
+
<notes>Some fixes and updates for ChromePHP and FirePHP</notes>
|
| 12 |
+
<authors><author><name>Jens Averkamp</name><user>Zeichen32</user><email>j.averkamp@itm-systems.com</email></author><author><name>Sven Motz</name><user>xMysteriox</user><email>s.motz@itm-systems.com</email></author></authors>
|
| 13 |
+
<date>2013-06-26</date>
|
| 14 |
+
<time>12:49:12</time>
|
| 15 |
+
<contents><target name="magelib"><dir name="Itm"><dir name="ChromePhp"><file name="ChromePhp.php" hash="b829e1c2687849a67387ad8e4c55404f"/><file name="README" hash="248a6810348f421e8088e5f15ffdcd95"/></dir><dir name="FirePhp"><file name="CHANGELOG" hash="f85d278ed16cdf2919efe76b6dea5709"/><file name="CREDITS" hash="4920ccd232ffa02846993d2dfb76c71f"/><file name="FirePHP.class.php" hash="48f5cd9953b22b2520dad0052bb63dfe"/><file name="FirePHP.class.php4" hash="7e3eedc65af89b608c61b8f245339abf"/><file name="LICENSE" hash="6069b4312400e0217c832242b0556b9e"/><file name="README" hash="fdc80fb96da0d8f9cf5e602ff8faf35a"/><file name="fb.php" hash="818b76e245f7c3f370ceba0bec1a53e3"/><file name="fb.php4" hash="2762f10e406c61531ead128394e135ff"/></dir></dir></target><target name="magecommunity"><dir name="Itm"><dir name="Logger"><dir name="Helper"><file name="Data.php" hash="11d6def9f9f4523de0dc683f46c1b286"/></dir><dir name="Model"><file name="ChromePhp.php" hash="50eeba1f5c4cc4f8cac5d3b3771fa189"/><file name="FirePhp.php" hash="4eccd43537ecfca912641ee58f5deaac"/><file name="Logger.php" hash="5805fb3bdcf8ca70475b4d88f5b1911d"/></dir><dir name="etc"><file name="adminhtml.xml" hash="26ea0d8b148585fa65447f5a8f0782c3"/><file name="config.xml" hash="3d3efe109d2bcc33ff5a77001200ca58"/><file name="system.xml" hash="84788fd26e10e51f193d6617e9f09d48"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Itm_Logger.xml" hash="53d7caa96559b6177fd2f263d3c8c36c"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
