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


PHP Log::verbose方法代码示例

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


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

示例1: logVariables

 public function logVariables()
 {
     try {
         if (isset($_SERVER['QUERY_STRING'])) {
             \Piwik\Log::verbose("Test Environment Variables for (%s):\n%s", $_SERVER['QUERY_STRING'], print_r($this->behaviorOverrideProperties, true));
         }
     } catch (Exception $ex) {
         // ignore
     }
 }
开发者ID:carriercomm,项目名称:piwik,代码行数:10,代码来源:TestingEnvironment.php

示例2: cacheArchiveIdsAfterLaunching

 /**
  * Gets the IDs of the archives we're querying for and stores them in $this->archives.
  * This function will launch the archiving process for each period/site/plugin if
  * metrics/reports have not been calculated/archived already.
  *
  * @param array $archiveGroups @see getArchiveGroupOfReport
  * @param array $plugins List of plugin names to archive.
  */
 private function cacheArchiveIdsAfterLaunching($archiveGroups, $plugins)
 {
     $today = Date::today();
     foreach ($this->params->getPeriods() as $period) {
         $twoDaysBeforePeriod = $period->getDateStart()->subDay(2);
         $twoDaysAfterPeriod = $period->getDateEnd()->addDay(2);
         foreach ($this->params->getIdSites() as $idSite) {
             $site = new Site($idSite);
             // if the END of the period is BEFORE the website creation date
             // we already know there are no stats for this period
             // we add one day to make sure we don't miss the day of the website creation
             if ($twoDaysAfterPeriod->isEarlier($site->getCreationDate())) {
                 Log::verbose("Archive site %s, %s (%s) skipped, archive is before the website was created.", $idSite, $period->getLabel(), $period->getPrettyString());
                 continue;
             }
             // if the starting date is in the future we know there is no visiidsite = ?t
             if ($twoDaysBeforePeriod->isLater($today)) {
                 Log::verbose("Archive site %s, %s (%s) skipped, archive is after today.", $idSite, $period->getLabel(), $period->getPrettyString());
                 continue;
             }
             $this->prepareArchive($archiveGroups, $site, $period);
         }
     }
 }
开发者ID:carriercomm,项目名称:piwik,代码行数:32,代码来源:Archive.php

示例3: installLoadedPlugins

 /**
  * Install loaded plugins
  *
  * @throws
  * @return array Error messages of plugin install fails
  */
 public function installLoadedPlugins()
 {
     Log::verbose("Loaded plugins: " . implode(", ", array_keys($this->getLoadedPlugins())));
     $messages = array();
     foreach ($this->getLoadedPlugins() as $plugin) {
         try {
             $this->installPluginIfNecessary($plugin);
         } catch (\Exception $e) {
             $messages[] = $e->getMessage();
         }
     }
     return $messages;
 }
开发者ID:TensorWrenchOSS,项目名称:piwik,代码行数:19,代码来源:Manager.php

示例4: __destruct

 /**
  * Called at the end of the page generation
  */
 public function __destruct()
 {
     try {
         if (class_exists('Piwik\\Profiler') && !SettingsServer::isTrackerApiRequest()) {
             // in tracker mode Piwik\Tracker\Db\Pdo\Mysql does currently not implement profiling
             Profiler::displayDbProfileReport();
             Profiler::printQueryCount();
         }
     } catch (Exception $e) {
         Log::verbose($e);
     }
 }
开发者ID:josl,项目名称:CGE-File-Sharing,代码行数:15,代码来源:FrontController.php

示例5: logStatusDebug

 public function logStatusDebug($isTemporary)
 {
     $temporary = 'definitive archive';
     if ($isTemporary) {
         $temporary = 'temporary archive';
     }
     Log::verbose("%s archive, idSite = %d (%s), segment '%s', report = '%s', UTC datetime [%s -> %s]", $this->getPeriod()->getLabel(), $this->getSite()->getId(), $temporary, $this->getSegment()->getString(), $this->getRequestedPlugin(), $this->getDateStart()->getDateStartUTC(), $this->getDateEnd()->getDateEndUTC());
 }
开发者ID:carriercomm,项目名称:piwik,代码行数:8,代码来源:Parameters.php

示例6: logSql

 private static function logSql($functionName, $sql, $parameters = array())
 {
     // NOTE: at the moment we dont log bind in order to avoid sensitive information leaks
     Log::verbose("Db::%s() executing SQL:\n%s", $functionName, $sql);
 }
开发者ID:TensorWrenchOSS,项目名称:piwik,代码行数:5,代码来源:Db.php

示例7: render

 /**
  * Renders the current view. Also sends the stored 'Content-Type' HTML header.
  * See {@link setContentType()}.
  *
  * @return string Generated template.
  */
 public function render()
 {
     try {
         $this->currentModule = Piwik::getModule();
         $this->currentAction = Piwik::getAction();
         $this->url = Common::sanitizeInputValue(Url::getCurrentUrl());
         $this->token_auth = Piwik::getCurrentUserTokenAuth();
         $this->userHasSomeAdminAccess = Piwik::isUserHasSomeAdminAccess();
         $this->userIsSuperUser = Piwik::hasUserSuperUserAccess();
         $this->latest_version_available = UpdateCheck::isNewestVersionAvailable();
         $this->disableLink = Common::getRequestVar('disableLink', 0, 'int');
         $this->isWidget = Common::getRequestVar('widget', 0, 'int');
         $this->cacheBuster = UIAssetCacheBuster::getInstance()->piwikVersionBasedCacheBuster();
         $this->loginModule = Piwik::getLoginPluginName();
         $user = APIUsersManager::getInstance()->getUser($this->userLogin);
         $this->userAlias = $user['alias'];
     } catch (Exception $e) {
         Log::verbose($e);
         // can fail, for example at installation (no plugin loaded yet)
     }
     try {
         $this->totalTimeGeneration = Registry::get('timer')->getTime();
         $this->totalNumberOfQueries = Profiler::getQueryCount();
     } catch (Exception $e) {
         $this->totalNumberOfQueries = 0;
     }
     ProxyHttp::overrideCacheControlHeaders('no-store');
     Common::sendHeader('Content-Type: ' . $this->contentType);
     // always sending this header, sometimes empty, to ensure that Dashboard embed loads (which could call this header() multiple times, the last one will prevail)
     Common::sendHeader('X-Frame-Options: ' . (string) $this->xFrameOptions);
     return $this->renderTwigTemplate();
 }
开发者ID:TensorWrenchOSS,项目名称:piwik,代码行数:38,代码来源:View.php


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