Skip to content

Commit

Permalink
Add support for console.table
Browse files Browse the repository at this point in the history
  • Loading branch information
ccampbell committed Jun 26, 2013
1 parent 2d32195 commit c3c2976
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion ChromePhp.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ChromePhp
/**
* @var string
*/
const VERSION = '4.0.0';
const VERSION = '4.1.0';

/**
* @var string
Expand Down Expand Up @@ -73,6 +73,11 @@ class ChromePhp
*/
const GROUP_COLLAPSED = 'groupCollapsed';

/**
* @var string
*/
const TABLE = 'table';

/**
* @var string
*/
Expand Down Expand Up @@ -225,6 +230,17 @@ public static function groupEnd()
return self::_log(self::GROUP_END, $args);
}

/**
* sends a table log
*
* @param string value
*/
public static function table()
{
$args = func_get_args();
return self::_log(self::TABLE, $args);
}

/**
* internal logging call
*
Expand Down

0 comments on commit c3c2976

Please sign in to comment.