Example #1
0
 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);
     }
 }
Example #2
0
 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);
     }
 }
 /**
  * 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);
     }
 }
 private static function log_debug($message)
 {
     if (class_exists("GFLogging")) {
         GFLogging::include_logger();
         GFLogging::log_message(self::$slug, $message, KLogger::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);
     }
 }
Example #6
0
 public static function log_debug($message)
 {
     if (class_exists("GFLogging")) {
         GFLogging::include_logger();
         GFLogging::log_message("gravityforms", $message, KLogger::DEBUG);
     }
 }
Example #7
0
 private static function log($message, $type)
 {
     if (class_exists("GFLogging")) {
         GFLogging::log_message(self::$slug, $message, $type);
     }
 }
Example #8
0
 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'));
 }
 public static function log_debug($message)
 {
     if (class_exists('GFLogging')) {
         GFLogging::include_logger();
         GFLogging::log_message('gravityperks', $message, KLogger::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);
     }
 }