Class 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 setConfigFile ConfigFile. The format is as follows,
<route class="TFileLogRoute" Categories="System.Web.UI" Levels="Warning" /> <route class="TEmailLogRoute" Categories="Application" Levels="Fatal" Emails="admin@pradosoft.com" />
PHP configuration style:
You can specify multiple routes with different filtering conditions and different targets, even if the routes are of the same type.
- TComponent
-
TApplicationComponent
-
TModule implements IModule
-
TLogRouter
Package: System\Util
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Author: Carl G. Mathisen <carlgmathisen@gmail.com>
Since: 3.0
Located at Util/TLogRouter.php
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Author: Carl G. Mathisen <carlgmathisen@gmail.com>
Since: 3.0
Located at Util/TLogRouter.php
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
#
collectLogs( mixed $param )
Collects log messages from a logger. This method is an event handler to application's EndRequest event. |
getID(),
setID()
|
getApplication(),
getRequest(),
getResponse(),
getService(),
getSession(),
getUser(),
publishAsset(),
publishFilePath()
|
GLOBAL_RAISE_EVENT_LISTENER
|