~fusonic/chive/1.1

« back to all changes in this revision

Viewing changes to yii/views/bg/log-firebug.php

  • Committer: Matthias Burtscher
  • Date: 2010-02-12 09:12:35 UTC
  • Revision ID: matthias.burtscher@fusonic.net-20100212091235-jqxrb62klx872ajc
* Updated Yii to 1.1.0
* Removed CodePress and CodeMirror
* Updated jQuery and some plugins
* Cleaned some code ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<script language="javascript" type="text/javascript">
 
2
/*<![CDATA[*/
 
3
if(typeof(console)=='object')
 
4
{
 
5
        console.group("Application 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'