Beispiel #1
0
 public static function debug($msg)
 {
     $path = Config_Log::get_config();
     $handle = fopen(LOG_PATH . "/debug.log", 'a+');
     fwrite($handle, '[' . date("Y-m-d H:i:s") . '] ' . stripslashes(var_export($msg, true)) . "\r\n");
     fclose($handle);
 }
Beispiel #2
0
 public function __construct()
 {
     if (self::$config == null) {
         self::$config = Config_Log::get_config();
     }
     parent::__construct('log', 'log');
 }