pool/web/framework-1.0.8/views/fr/log-firebug.php
Tanguy Pruvot bb31cec957 dos2unix all files, we are on linux
trim them, btw... its important to start on a clean base...
2015-07-12 04:40:50 +02:00

23 lines
No EOL
531 B
PHP

<script language="javascript" type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Application Log");
<?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>