5 if ( ! defined(
'GRAVITYVIEW_DIR' ) ) {
13 const EMERGENCY =
'emergency';
14 const ALERT =
'alert';
15 const CRITICAL =
'critical';
16 const ERROR =
'error';
17 const WARNING =
'warning';
18 const NOTICE =
'notice';
20 const DEBUG =
'debug';
37 public function emergency($message, array $context = array())
39 $this->log(LogLevel::EMERGENCY, $message, $context);
53 public function alert($message, array $context = array())
55 $this->log(LogLevel::ALERT, $message, $context);
68 public function critical($message, array $context = array())
70 $this->log(LogLevel::CRITICAL, $message, $context);
82 public function error($message, array $context = array())
84 $this->log(LogLevel::ERROR, $message, $context);
98 public function warning($message, array $context = array())
100 $this->log(LogLevel::WARNING, $message, $context);
111 public function notice($message, array $context = array())
113 $this->log(LogLevel::NOTICE, $message, $context);
126 public function info($message, array $context = array())
128 $this->log(LogLevel::INFO, $message, $context);
139 public function debug($message, array $context = array())
141 $this->log(LogLevel::DEBUG, $message, $context);
152 foreach ( $context as $key => $val ) {
153 if ( strpos( $message,
"{{$key}}" ) !==
false ) {
154 $message = str_replace(
"{{$key}}", (
string) $val, $message );
163 require
gravityview()->plugin->dir(
'future/includes/class-gv-logger-wp-action.php' );
emergency($message, array $context=array())
System is unusable.
debug($message, array $context=array())
Detailed debug information.
critical($message, array $context=array())
Critical conditions.
interpolate( $message, $context)
Bake the context into { } placeholders in the message.
error($message, array $context=array())
Runtime errors that do not require immediate action but should typically be logged and monitored...
alert($message, array $context=array())
Action must be taken immediately.
notice($message, array $context=array())
Normal but significant events.
info($message, array $context=array())
Interesting events.
gravityview()
The main GravityView wrapper function.
If this file is called directly, abort.
warning($message, array $context=array())
Exceptional occurrences that are not errors.