~horux-dev/horux-webcli/thfo

« back to all changes in this revision

Viewing changes to yii/framework/views/sk/log-firebug.php

  • Committer: Thierry Forchelet
  • Date: 2011-02-25 13:30:15 UTC
  • Revision ID: thierry.forchelet@letux.ch-20110225133015-zxyj9w7sqv8ly971
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<script type="text/javascript">
 
2
/*<![CDATA[*/
 
3
if(typeof(console)=='object')
 
4
{
 
5
        console.group("Aplikačný Log");
 
6
<?php
 
7
foreach($data as $index=>$log)
 
8
{
 
9
        $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
 
10
        if($log[1]===CLogger::LEVEL_WARNING)
 
11
                $func='warn';
 
12
        else if($log[1]===CLogger::LEVEL_ERROR)
 
13
                $func='error';
 
14
        else
 
15
                $func='log';
 
16
        $content=CJavaScript::quote("[$time][$log[1]][$log[2]] $log[0]");
 
17
        echo "\tconsole.{$func}(\"{$content}\");\n";
 
18
}
 
19
?>
 
20
        console.groupEnd();
 
21
}
 
22
/*]]>*/
 
23
</script>
 
 
b'\\ No newline at end of file'