summaryrefslogtreecommitdiff
path: root/framework/views/nl/log-firebug.php
blob: 8e8d415809b66254acbdab4fd8c490b613492ced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object') {
    console.group("Applicatie Logboek");
<?php
foreach($data as $index=>$log) {
    $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000);
    if($log[1]===CLogger::LEVEL_WARNING)
        $func='warn';
    else if($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>