diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-04-13 23:11:05 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-04-13 23:11:05 +0200 |
| commit | 341cc4dd9c53ffbfb863e026dd58549c1082c7a7 (patch) | |
| tree | 1bbbed20313bafb9b063b6b4d894fe580d8b000f /framework/views/nl/log-firebug.php | |
Diffstat (limited to 'framework/views/nl/log-firebug.php')
| -rw-r--r-- | framework/views/nl/log-firebug.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/framework/views/nl/log-firebug.php b/framework/views/nl/log-firebug.php new file mode 100644 index 0000000..8e8d415 --- /dev/null +++ b/framework/views/nl/log-firebug.php @@ -0,0 +1,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>
\ No newline at end of file |
