PHP 클래스 Prado\Util\TLogRouter
TLogRouter manages routes that record log messages in different media different ways.
For example, a file log route {@link TFileLogRoute} records log messages
in log files. An email log route {@link 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 {@link setConfigFile ConfigFile}.
The format is as follows,
PHP configuration style:
You can specify multiple routes with different filtering conditions and different
targets, even if the routes are of the same type.
파일 보기
프로젝트 열기: pradosoft/prado
공개 메소드들
비공개 메소드들
메소드 |
설명 |
|
loadConfig ( $config ) |
Loads configuration from an XML element or PHP array |
|
메소드 상세
Adds a TLogRoute instance to the log router.
public addRoute ( TLogRoute $route ) |
$route |
TLogRoute |
|
This method is an event handler to application's EndRequest event.
This method is required by the IModule interface.