|
static | _log ($type, array $args) |
|
◆ _addRow()
_addRow |
( |
array |
$logs, |
|
|
|
$backtrace, |
|
|
|
$type |
|
) |
| |
|
protected |
◆ _convert()
converts an object to a better format for logging
- Parameters
-
- Returns
- array
◆ _encode()
encodes the data to be sent along with the request
- Parameters
-
- Returns
- string
◆ _getPropertyKey()
_getPropertyKey |
( |
ReflectionProperty |
$property | ) |
|
|
protected |
takes a reflection property and returns a nicely formatted key of the property name
- Parameters
-
- Returns
- string
◆ _log()
static _log |
( |
|
$type, |
|
|
array |
$args |
|
) |
| |
|
staticprotected |
internal logging call
- Parameters
-
- Returns
- void
◆ _writeHeader()
◆ addSetting()
addSetting |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
adds a setting
- Parameters
-
- Returns
- void
◆ addSettings()
addSettings |
( |
array |
$settings | ) |
|
add ability to set multiple settings in one call
- Parameters
-
- Returns
- void
◆ error()
logs an error to the console
- Parameters
-
mixed | $data,... | unlimited OPTIONAL number of additional logs [...] |
- Returns
- void
◆ getInstance()
◆ getSetting()
gets a setting
- Parameters
-
- Returns
- mixed
◆ group()
sends a group log
- Parameters
-
◆ groupCollapsed()
static groupCollapsed |
( |
| ) |
|
|
static |
sends a collapsed group log
- Parameters
-
◆ groupEnd()
ends a group log
- Parameters
-
◆ info()
sends an info log
- Parameters
-
mixed | $data,... | unlimited OPTIONAL number of additional logs [...] |
- Returns
- void
◆ log()
logs a variable to the console
- Parameters
-
mixed | $data,... | unlimited OPTIONAL number of additional logs [...] |
- Returns
- void
◆ table()
sends a table log
- Parameters
-
◆ warn()
logs a warning to the console
- Parameters
-
mixed | $data,... | unlimited OPTIONAL number of additional logs [...] |
- Returns
- void
◆ $_backtraces
◆ $_error_triggered
$_error_triggered = false |
|
protected |
◆ $_instance
◆ $_json
Initial value:= array(
'version' => self::VERSION,
'columns' => array('log', 'backtrace', 'type'),
'rows' => array()
)
◆ $_php_version
◆ $_processed
◆ $_settings
Initial value:= array(
self::BACKTRACE_LEVEL => 1
)
◆ $_timestamp
◆ BACKTRACE_LEVEL
const BACKTRACE_LEVEL = 'backtrace_level' |
◆ ERROR
◆ GROUP
◆ GROUP_COLLAPSED
◆ GROUP_END
◆ HEADER_NAME
const HEADER_NAME = 'X-ChromeLogger-Data' |
◆ INFO
◆ LOG
◆ TABLE
◆ VERSION
◆ WARN
The documentation for this class was generated from the following file: