public static function singleton() { if ($i = self::$INSTANCE) { return $i; } self::$INSTANCE = new DF_Logger_Log4php_OldVersion(); return self::$INSTANCE; }
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"); }