當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GFLogging類代碼示例

本文整理匯總了PHP中GFLogging的典型用法代碼示例。如果您正苦於以下問題:PHP GFLogging類的具體用法?PHP GFLogging怎麽用?PHP GFLogging使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了GFLogging類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: log_error

 static function log_error($message = '', $data = null)
 {
     $function = self::get_print_function();
     self::$errors[] = array('message' => $message, 'data' => $data);
     if (class_exists("GFLogging")) {
         GFLogging::include_logger();
         GFLogging::log_message('gravityview', $function($message, true) . $function($data, true), KLogger::ERROR);
     }
 }
開發者ID:psdes,項目名稱:GravityView,代碼行數:9,代碼來源:class-logging.php

示例2: log_error

 static function log_error($message = '', $data = null)
 {
     $function = self::get_print_function();
     $error = array('message' => $message, 'data' => $data, 'backtrace' => function_exists('wp_debug_backtrace_summary') ? wp_debug_backtrace_summary(null, 3) : '');
     if (!in_array($error, self::$errors)) {
         self::$errors[] = $error;
     }
     if (class_exists("GFLogging")) {
         GFLogging::include_logger();
         GFLogging::log_message('gravityview', $function($message, true) . $function($data, true), KLogger::ERROR);
     }
 }
開發者ID:roarmoser,項目名稱:gv1,代碼行數:12,代碼來源:class-logging.php

示例3: log

 /**
  * Send a message to the log files
  * @param str $message The message to write
  * @param bool $debug Should this message only be written if WP_DEBUG is true?
  * @return void
  */
 protected function log($message, $debug = false)
 {
     if (!$debug || WP_DEBUG) {
         error_log(sprintf('GFDP: %s', $message));
     }
     if (class_exists('GFLogging')) {
         GFLogging::include_logger();
         $level = $debug ? KLogger::ERROR : KLogger::DEBUG;
         // Treat messages shown with WP_DEBUG on as errors
         GFLogging::log_message('gfdp', $message, $level);
     }
 }
開發者ID:cimburadotcom,項目名稱:gravity-forms-duplicate-prevention,代碼行數:18,代碼來源:gravityforms-duplicateprevention.php

示例4: log_debug

 private static function log_debug($message)
 {
     if (class_exists("GFLogging")) {
         GFLogging::include_logger();
         GFLogging::log_message(self::$slug, $message, KLogger::DEBUG);
     }
 }
開發者ID:jasondavis,項目名稱:gravity-forms-sisyphus,代碼行數:7,代碼來源:gravity-forms-sisyphus.php

示例5: log_debug

 /**
  * Writes an error message to the Gravity Forms log. Requires the Gravity Forms logging Add-On.
  *
  * Not intended to be overridden by Add-Ons.
  *
  * @ignore
  */
 public function log_debug($message)
 {
     if (class_exists("GFLogging")) {
         GFLogging::include_logger();
         GFLogging::log_message($this->_slug, $message, KLogger::DEBUG);
     }
 }
開發者ID:BisongT,項目名稱:Myevent_website,代碼行數:14,代碼來源:class-gf-addon.php

示例6: log_debug

 public static function log_debug($message)
 {
     if (class_exists("GFLogging")) {
         GFLogging::include_logger();
         GFLogging::log_message("gravityforms", $message, KLogger::DEBUG);
     }
 }
開發者ID:ipman3,項目名稱:Mediassociates-wp,代碼行數:7,代碼來源:common.php

示例7: log

 private static function log($message, $type)
 {
     if (class_exists("GFLogging")) {
         GFLogging::log_message(self::$slug, $message, $type);
     }
 }
開發者ID:hscale,項目名稱:webento,代碼行數:6,代碼來源:mailchimp.php

示例8: uninstall

 public static function uninstall()
 {
     if (!GFLogging::has_access("gravityforms_logging_uninstall")) {
         die(__("You don't have adequate permission to uninstall the Gravity Forms Logging Add-On.", "gravityformslogging"));
     }
     //removing options
     delete_option("gf_logging_settings");
     //deleting log files
     self::delete_log_files();
     //Deactivating plugin
     $plugin = "gravityformslogging/logging.php";
     deactivate_plugins($plugin);
     update_option('recently_activated', array($plugin => time()) + (array) get_option('recently_activated'));
 }
開發者ID:beyond-z,項目名稱:braven,代碼行數:14,代碼來源:logging.php

示例9: log_debug

 /**
  * write an debug message log via the Gravity Forms Logging Add-On
  * @param string $message
  */
 public static function log_debug($message)
 {
     if (class_exists('GFLogging')) {
         GFLogging::include_logger();
         GFLogging::log_message('gfeway', self::sanitiseLog($message), KLogger::DEBUG);
     }
 }
開發者ID:Ezyva2015,項目名稱:SMSF-Academy-Wordpress,代碼行數:11,代碼來源:class.GFEwayPlugin.php


注:本文中的GFLogging類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。