Class Debugger
Debugger: displays and logs errors.
Behavior is determined by two factors: mode & output
- modes: production / development
- output: HTML / AJAX / CLI / other (e.g. XML)
final public
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
boolean
|
|
public static
string
|
#
log( string|
Logs message or exception to file (if not disabled) and sends email notification (if enabled). |
public static
|
|
public static
|
|
public static
|
|
public static
mixed
|
|
public static
float
|
|
public static
mixed
|
|
public static
boolean
|
|
public static
|
boolean |
DEVELOPMENT
|
FALSE |
#
server modes |
boolean |
PRODUCTION
|
TRUE |
#
server modes |
|
DETECT
|
NULL |
#
server modes |
string |
DEBUG
|
'debug' |
|
string |
INFO
|
'info' |
|
string |
WARNING
|
'warning' |
|
string |
ERROR
|
'error' |
|
string |
CRITICAL
|
'critical' |
public static
boolean
|
$productionMode |
|
#
in production mode is suppressed any debugging output |
public static
|
$consoleMode |
|
|
public static
integer
|
$time |
|
#
timestamp with microseconds of the start of the request |
public static
string
|
$source |
|
#
requested URI or command line |
public static
string
|
$editor | 'editor://open/?file=%file&line=%line' |
#
URL pattern mask to open editor |
public static
string
|
$browser |
|
#
command to open browser (use 'start ""' in Windows) |
public static
integer
|
$maxDepth | 3 |
#
how many nested levels of array/object properties display |
public static
integer
|
$maxLen | 150 |
#
how long strings display |
public static
boolean
|
$showLocation | FALSE |
#
display location? |
public static
|
$consoleColors |
|
|
public static
|
$blueScreen |
|
|
public static
boolean|integer
|
$strictMode | FALSE |
#
determines whether any error will cause immediate death; if integer that it's matched against error severity |
public static
boolean
|
$scream | FALSE |
#
disables the @ (shut-up) operator so that notices and warnings are no longer hidden |
public static
array
|
$onFatalError | array() |
#
of callables specifies the functions that are automatically called after fatal error |
public static
|
$logger |
|
|
public static
|
$fireLogger |
|
|
public static
string
|
$logDirectory |
|
#
name of the directory where errors should be logged; FALSE means that logging is disabled |
public static
string|array
|
|
#
email(s) to which send error notifications |
|
public static
array
|
$mailer | array('Nette\Diagnostics\Logger', 'defaultMailer') |
|
public static
integer
|
$emailSnooze | 172800 |
|
public static
|
$bar |
|