当前位置: 首页>>代码示例>>PHP>>正文


PHP KalturaLog::getInstance方法代码示例

本文整理汇总了PHP中KalturaLog::getInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP KalturaLog::getInstance方法的具体用法?PHP KalturaLog::getInstance怎么用?PHP KalturaLog::getInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在KalturaLog的用法示例。


在下文中一共展示了KalturaLog::getInstance方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getLogger

 private static function getLogger()
 {
     if (!self::$logger) {
         if (class_exists('sfLogger')) {
             self::$logger = sfLogger::getInstance();
         } else {
             self::$logger = KalturaLog::getInstance();
         }
     }
     return self::$logger;
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:11,代码来源:kLog.class.php

示例2: initialize

 public static function initialize()
 {
     $dbConfigs = array();
     $pluginInstances = KalturaPluginManager::getPluginInstances('IKalturaDatabaseConfig');
     foreach ($pluginInstances as $pluginInstance) {
         $dbConfigs[] = $pluginInstance->getDatabaseConfig();
     }
     foreach ($dbConfigs as $dbConfig) {
         self::addExtraConfiguration($dbConfig);
     }
     Propel::setConfiguration(self::$config);
     Propel::setLogger(KalturaLog::getInstance());
     Propel::initialize();
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:14,代码来源:DbManager.php

示例3: initialize

 public static function initialize()
 {
     $dbConfigs = self::getExtraDatabaseConfigs();
     foreach ($dbConfigs as $dbConfig) {
         self::addExtraConfiguration($dbConfig);
     }
     Propel::setConfiguration(self::$config);
     Propel::setLogger(KalturaLog::getInstance());
     try {
         Propel::initialize();
     } catch (PropelException $pex) {
         KalturaLog::alert($pex->getMessage());
         throw new PropelException("Database error");
     }
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:15,代码来源:DbManager.php

示例4: define

<?php

define('KALTURA_ROOT_PATH', realpath(__DIR__ . '/../'));
define('SF_APP', 'kaltura');
define('SF_ROOT_DIR', KALTURA_ROOT_PATH . '/alpha');
define('MODULES', SF_ROOT_DIR . '/apps/kaltura/modules/');
$sf_symfony_lib_dir = KALTURA_ROOT_PATH . '/vendor/symfony';
$sf_symfony_data_dir = KALTURA_ROOT_PATH . '/vendor/symfony-data';
// symfony bootstraping
require_once "{$sf_symfony_lib_dir}/util/sfCore.class.php";
sfCore::bootstrap($sf_symfony_lib_dir, $sf_symfony_data_dir);
// Logger
kLoggerCache::InitLogger(KALTURA_LOG, 'PS2');
sfLogger::getInstance()->registerLogger(KalturaLog::getInstance());
sfLogger::getInstance()->setLogLevel(7);
sfConfig::set('sf_logging_enabled', true);
DbManager::setConfig(kConf::getDB());
DbManager::initialize();
ActKeyUtils::checkCurrent();
sfContext::getInstance()->getController()->dispatch();
开发者ID:DBezemer,项目名称:server,代码行数:20,代码来源:bootstrap.php

示例5: define

define("KALTURA_API_PATH", KALTURA_ROOT_PATH . DIRECTORY_SEPARATOR . "api_v3");
require_once KALTURA_API_PATH . DIRECTORY_SEPARATOR . 'VERSION.php';
//defines KALTURA_API_VERSION
require_once KALTURA_ROOT_PATH . DIRECTORY_SEPARATOR . 'alpha' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'kConf.php';
// Autoloader
require_once KALTURA_INFRA_PATH . DIRECTORY_SEPARATOR . "KAutoloader.php";
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "propel", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_API_PATH, "lib", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_API_PATH, "services", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "alpha", "plugins", "*"));
// needed for testmeDoc
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "generator"));
// needed for testmeDoc
KAutoloader::setClassMapFilePath(kConf::get("cache_root_path") . '/api_v3/classMap.cache');
//KAutoloader::dumpExtra();
KAutoloader::register();
// Timezone
date_default_timezone_set(kConf::get("date_default_timezone"));
// America/New_York
// Logger
$loggerConfigPath = KALTURA_API_PATH . DIRECTORY_SEPARATOR . "config" . DIRECTORY_SEPARATOR . "logger.ini";
try {
    $config = new Zend_Config_Ini($loggerConfigPath);
} catch (Zend_Config_Exception $ex) {
    $config = null;
}
KalturaLog::initLog($config);
// for places where kLog is used
kLog::setLogger(KalturaLog::getInstance());
开发者ID:richhl,项目名称:kalturaCE,代码行数:30,代码来源:bootstrap.php


注:本文中的KalturaLog::getInstance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。