Esempio n. 1
0
 public static function singleton()
 {
     if ($i = self::$INSTANCE) {
         return $i;
     }
     self::$INSTANCE = new DF_Logger_Log4php_Version2();
     return self::$INSTANCE;
 }
Esempio n. 2
0
 private static function getLog4PhpLoader()
 {
     if (DF_Logger_Log4php_Version2::isSupported()) {
         return DF_Logger_Log4php_Version2::singleton();
     }
     if (DF_Logger_Log4php_OldVersion::isSupported()) {
         return DF_Logger_Log4php_OldVersion::singleton();
     }
     throw new DF_Logger_NotSupportedException("Unable to find an installed log4php instance");
 }