bludit/bl-kernel/helpers/log.class.php

20 lines
484 B
PHP
Raw Normal View History

2015-05-05 03:00:01 +02:00
<?php defined('BLUDIT') or die('Bludit CMS.');
class Log {
public static function set($text, $type=0)
{
2017-07-16 20:10:19 +02:00
if (is_array($text) ) {
error_log('------------------------', $type);
error_log('Array', $type);
error_log('------------------------', $type);
foreach ($text as $key=>$value) {
error_log($key.'=>'.$value, $type);
}
error_log('------------------------', $type);
}
error_log('('.BLUDIT_VERSION.') ('.$_SERVER['REQUEST_URI'].') '.$text, $type);
2015-05-05 03:00:01 +02:00
}
2015-05-31 03:06:55 +02:00
}