summaryrefslogtreecommitdiff
path: root/framework/views/zh_cn/log-firebug.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/views/zh_cn/log-firebug.php')
-rw-r--r--framework/views/zh_cn/log-firebug.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/framework/views/zh_cn/log-firebug.php b/framework/views/zh_cn/log-firebug.php
new file mode 100644
index 0000000..8d0971e
--- /dev/null
+++ b/framework/views/zh_cn/log-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("程序日志");
+<?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