REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 2.82 KB
Close
/home/jambtst2015/www/framework/logging/CWebLogRoute.php
Text
Base64
<?php /** * CWebLogRoute class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright 2008-2013 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CWebLogRoute shows the log content in Web page. * * The log content can appear either at the end of the current Web page * or in FireBug console window (if {@link showInFireBug} is set true). * * @author Qiang Xue <qiang.xue@gmail.com> * @package system.logging * @since 1.0 */ class CWebLogRoute extends CLogRoute { /** * @var boolean whether the log should be displayed in FireBug instead of browser window. Defaults to false. */ public $showInFireBug=false; /** * @var boolean whether the log should be ignored in FireBug for ajax calls. Defaults to true. * This option should be used carefully, because an ajax call returns all output as a result data. * For example if the ajax call expects a json type result any output from the logger will cause ajax call to fail. */ public $ignoreAjaxInFireBug=true; /** * @var boolean whether the log should be ignored in FireBug for Flash/Flex calls. Defaults to true. * This option should be used carefully, because an Flash/Flex call returns all output as a result data. * For example if the Flash/Flex call expects an XML type result any output from the logger will cause Flash/Flex call to fail. * @since 1.1.11 */ public $ignoreFlashInFireBug=true; /** * @var boolean whether the log should be collapsed by default in Firebug. Defaults to false. * @since 1.1.13. */ public $collapsedInFireBug=false; /** * Displays the log messages. * @param array $logs list of log messages */ public function processLogs($logs) { $this->render('log',$logs); } /** * Renders the view. * @param string $view the view name (file name without extension). The file is assumed to be located under framework/data/views. * @param array $data data to be passed to the view */ protected function render($view,$data) { $app=Yii::app(); $isAjax=$app->getRequest()->getIsAjaxRequest(); $isFlash=$app->getRequest()->getIsFlashRequest(); if($this->showInFireBug) { // do not output anything for ajax and/or flash requests if needed if($isAjax && $this->ignoreAjaxInFireBug || $isFlash && $this->ignoreFlashInFireBug) return; $view.='-firebug'; if(($userAgent=$app->getRequest()->getUserAgent())!==null && preg_match('/msie [5-9]/i',$userAgent)) { echo '<script type="text/javascript">'; echo file_get_contents(dirname(__FILE__).'/../vendors/console-normalizer/normalizeconsole.min.js'); echo "</script>\n"; } } elseif(!($app instanceof CWebApplication) || $isAjax || $isFlash) return; $viewFile=YII_PATH.DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.$view.'.php'; include($app->findLocalizedFile($viewFile,'en')); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
CChainedLogFilter.php
1.23 KB
lrw-r--r--
2024-11-22 17:53:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CDbLogRoute.php
3.84 KB
lrw-r--r--
2024-11-22 17:53:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CEmailLogRoute.php
4.30 KB
lrw-r--r--
2024-11-22 17:53:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CFileLogRoute.php
5.13 KB
lrw-r--r--
2024-11-22 17:53:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CLogFilter.php
4.26 KB
lrw-r--r--
2024-11-22 17:53:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CLogger.php
11.17 KB
lrw-r--r--
2024-11-22 17:53:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CLogRoute.php
4.11 KB
lrw-r--r--
2024-11-22 17:53:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CLogRouter.php
3.48 KB
lrw-r--r--
2024-11-22 17:53:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CProfileLogRoute.php
5.73 KB
lrw-r--r--
2024-11-22 17:53:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CWebLogRoute.php
2.82 KB
lrw-r--r--
2024-11-22 17:53:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
68.04 KB
lrw-r--r--
2025-11-03 19:43:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).