Class \Prado\Util\TLogRouter
TLogRouter class.
TLogRouter manages routes that record log messages in different media different ways. For example, a file log route TFileLogRoute records log messages in log files. An email log route TEmailLogRoute sends log messages to email addresses.
Log routes may be configured in application or page folder configuration files or an external configuration file specified by \Prado\Util\setConfigFile. The format is as follows,
<route class="TFileLogRoute" Categories="Prado\Web\UI" Levels="Warning" />
<route class="TEmailLogRoute" Categories="Application" Levels="Fatal" Emails="admin@prado.local" />
You can specify multiple routes with different filtering conditions and different targets, even if the routes are of the same type.
Class hierarchy
- \Prado\Util\TLogRouter
- \Prado\TModule implements IModule
- \Prado\TApplicationComponent
- \Prado\TComponent
Author: Carl G. Mathisen <carlgmathisen@gmail.com>
Author: Brad Anderson <belisoful@icloud.com>
Since: 3.0
public
|
|
public
|
collectLogs(TLogger $logger, bool $final) : mixed
Collects log messages from a logger.
This method is an event handler to application's EndRequest event. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
init(mixed $config) : mixed
Initializes this module.
This method is required by the IModule interface. |
public
|
|
public
|
|
public
|
|
public
|
|
private
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |