本文整理匯總了PHP中GFLogging::log_message方法的典型用法代碼示例。如果您正苦於以下問題:PHP GFLogging::log_message方法的具體用法?PHP GFLogging::log_message怎麽用?PHP GFLogging::log_message使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GFLogging
的用法示例。
在下文中一共展示了GFLogging::log_message方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例6: log_debug
public static function log_debug($message)
{
if (class_exists("GFLogging")) {
GFLogging::include_logger();
GFLogging::log_message("gravityforms", $message, KLogger::DEBUG);
}
}
示例7: log
private static function log($message, $type)
{
if (class_exists("GFLogging")) {
GFLogging::log_message(self::$slug, $message, $type);
}
}
示例8: 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);
}
}