Ejemplo n.º 1
0
Archivo: MyLog.php Proyecto: EQ4/smafe
 /**
  * The singleton method
  *
  * @param string $logLevel the level the log function should work with, all levels higher or equal will be logged 
  * @param string $logfilename optional filename to be used by the log method
  * @return instance of the MyLog class 
  * @author jochum
  */
 public static function singleton($logLevel = 30000, $logfilename = "api.log")
 {
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c($logLevel, $logfilename);
     }
     return self::$instance;
 }