PHP Classes

File: yii/framework/views/log-firebug.php

Recommend this page to a friend!
  Classes of Adnane EL Mouttaki   Covoiturage   yii/framework/views/log-firebug.php   Download  
File: yii/framework/views/log-firebug.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Covoiturage
System for managing a car pooling service
Author: By
Last change:
Date: 6 years ago
Size: 584 bytes
 

Contents

Class file image Download
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
    console.<?php echo $this->collapsedInFireBug?'groupCollapsed':'group'; ?>("Application Log");
<?php
foreach($data as $index=>$log)
{
   
$time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
    if(
$log[1]===CLogger::LEVEL_WARNING)
       
$func='warn';
    elseif(
$log[1]===CLogger::LEVEL_ERROR)
       
$func='error';
    else
       
$func='log';
   
$content=CJavaScript::quote("[$time][$log[1]][$log[2]] $log[0]");
    echo
"\tconsole.{$func}(\"{$content}\");\n";
}
?>
console.groupEnd();
}
/*]]>*/
</script>