Tracy Configuration
Following examples assume the following class alias is defined:
Error Logging
dump()
Behavior
Others
Nette Framework
If you are using the Nette Framework, you can also configure Tracy and add new panels to the Tracy Bar using the configuration file. You can set the Tracy parameters in the configuration and also add new panels to the Tracy Bar. These settings are applied only after the DI container has been created, so errors that occurred earlier cannot reflect them.
Error logging configuration:
Configuration for function dump()
:
To install the Tracy extension:
Other options:
The values of the logSeverity
, strictMode
and scream
options can be written as an array
of error levels (e.g. [E_WARNING, E_NOTICE]
) or as an expression used in PHP (e.g.
E_ALL & ~E_NOTICE
).
DI Services
These services are added to the DI container:
Name | Type | Description |
---|---|---|
tracy.logger |
Tracy\ILogger | logger |
tracy.blueScreen |
Tracy\BlueScreen | BlueScreen |
tracy.bar |
Tracy\Bar | Tracy Bar |