GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Static Public Member Functions | Static Private Attributes
GravityView_Logging Class Reference

(Foundation) Deprecate in future versions or write a wrapper for Foundation Logger so that all methods are accessible through gravity()->plugin->log() or something. More...

Public Member Functions

 __construct ()
 

Static Public Member Functions

static get_print_function ()
 Get the name of the function to print messages for debugging. More...
 
static log_debug ( $message='', $data=null)
 
static log_error ( $message='', $data=null)
 

Static Private Attributes

static $_logger
 

Detailed Description

(Foundation) Deprecate in future versions or write a wrapper for Foundation Logger so that all methods are accessible through gravity()->plugin->log() or something.

Definition at line 8 of file class-gravityview-logging.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Definition at line 11 of file class-gravityview-logging.php.

Member Function Documentation

◆ get_print_function()

static get_print_function ( )
static

Get the name of the function to print messages for debugging.

This is necessary because ob_start() doesn't allow print_r() inside it.

Returns
string "print_r" or "var_export"

Definition at line 32 of file class-gravityview-logging.php.

◆ log_debug()

static log_debug (   $message = '',
  $data = null 
)
static

Definition at line 42 of file class-gravityview-logging.php.

◆ log_error()

static log_error (   $message = '',
  $data = null 
)
static

Definition at line 50 of file class-gravityview-logging.php.

Field Documentation

◆ $_logger

$_logger
staticprivate

Definition at line 9 of file class-gravityview-logging.php.


The documentation for this class was generated from the following file: