Edit File by line
/home/barbar84/www/wp-conte.../plugins/ninja-fo.../includes/Abstract...
File: Logger.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
/**
[3] Fix | Delete
* This is a simple Logger implementation that other Loggers can inherit from.
[4] Fix | Delete
*
[5] Fix | Delete
* It simply delegates all log-level-specific methods to the `log` method to
[6] Fix | Delete
* reduce boilerplate code that a simple Logger that does the same thing with
[7] Fix | Delete
* messages regardless of the error level has to implement.
[8] Fix | Delete
*/
[9] Fix | Delete
abstract class NF_Abstracts_Logger implements NF_Abstracts_LoggerInterface
[10] Fix | Delete
{
[11] Fix | Delete
/**
[12] Fix | Delete
* System is unusable.
[13] Fix | Delete
*
[14] Fix | Delete
* @param string $message
[15] Fix | Delete
* @param array $context
[16] Fix | Delete
*
[17] Fix | Delete
* @return null
[18] Fix | Delete
*/
[19] Fix | Delete
public function emergency($message, array $context = array())
[20] Fix | Delete
{
[21] Fix | Delete
$this->log(NF_Abstracts_LogLevel::EMERGENCY, $message, $context);
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* Action must be taken immediately.
[26] Fix | Delete
*
[27] Fix | Delete
* Example: Entire website down, database unavailable, etc. This should
[28] Fix | Delete
* trigger the SMS alerts and wake you up.
[29] Fix | Delete
*
[30] Fix | Delete
* @param string $message
[31] Fix | Delete
* @param array $context
[32] Fix | Delete
*
[33] Fix | Delete
* @return null
[34] Fix | Delete
*/
[35] Fix | Delete
public function alert($message, array $context = array())
[36] Fix | Delete
{
[37] Fix | Delete
$this->log(NF_Abstracts_LogLevel::ALERT, $message, $context);
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
/**
[41] Fix | Delete
* Critical conditions.
[42] Fix | Delete
*
[43] Fix | Delete
* Example: Application component unavailable, unexpected exception.
[44] Fix | Delete
*
[45] Fix | Delete
* @param string $message
[46] Fix | Delete
* @param array $context
[47] Fix | Delete
*
[48] Fix | Delete
* @return null
[49] Fix | Delete
*/
[50] Fix | Delete
public function critical($message, array $context = array())
[51] Fix | Delete
{
[52] Fix | Delete
$this->log(NF_Abstracts_LogLevel::CRITICAL, $message, $context);
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
/**
[56] Fix | Delete
* Runtime errors that do not require immediate action but should typically
[57] Fix | Delete
* be logged and monitored.
[58] Fix | Delete
*
[59] Fix | Delete
* @param string $message
[60] Fix | Delete
* @param array $context
[61] Fix | Delete
*
[62] Fix | Delete
* @return null
[63] Fix | Delete
*/
[64] Fix | Delete
public function error($message, array $context = array())
[65] Fix | Delete
{
[66] Fix | Delete
$this->log(NF_Abstracts_LogLevel::ERROR, $message, $context);
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
/**
[70] Fix | Delete
* Exceptional occurrences that are not errors.
[71] Fix | Delete
*
[72] Fix | Delete
* Example: Use of deprecated APIs, poor use of an API, undesirable things
[73] Fix | Delete
* that are not necessarily wrong.
[74] Fix | Delete
*
[75] Fix | Delete
* @param string $message
[76] Fix | Delete
* @param array $context
[77] Fix | Delete
*
[78] Fix | Delete
* @return null
[79] Fix | Delete
*/
[80] Fix | Delete
public function warning($message, array $context = array())
[81] Fix | Delete
{
[82] Fix | Delete
$this->log(NF_Abstracts_LogLevel::WARNING, $message, $context);
[83] Fix | Delete
}
[84] Fix | Delete
[85] Fix | Delete
/**
[86] Fix | Delete
* Normal but significant events.
[87] Fix | Delete
*
[88] Fix | Delete
* @param string $message
[89] Fix | Delete
* @param array $context
[90] Fix | Delete
*
[91] Fix | Delete
* @return null
[92] Fix | Delete
*/
[93] Fix | Delete
public function notice($message, array $context = array())
[94] Fix | Delete
{
[95] Fix | Delete
$this->log(NF_Abstracts_LogLevel::NOTICE, $message, $context);
[96] Fix | Delete
}
[97] Fix | Delete
[98] Fix | Delete
/**
[99] Fix | Delete
* Interesting events.
[100] Fix | Delete
*
[101] Fix | Delete
* Example: User logs in, SQL logs.
[102] Fix | Delete
*
[103] Fix | Delete
* @param string $message
[104] Fix | Delete
* @param array $context
[105] Fix | Delete
*
[106] Fix | Delete
* @return null
[107] Fix | Delete
*/
[108] Fix | Delete
public function info($message, array $context = array())
[109] Fix | Delete
{
[110] Fix | Delete
$this->log(NF_Abstracts_LogLevel::INFO, $message, $context);
[111] Fix | Delete
}
[112] Fix | Delete
[113] Fix | Delete
/**
[114] Fix | Delete
* Detailed debug information.
[115] Fix | Delete
*
[116] Fix | Delete
* @param string $message
[117] Fix | Delete
* @param array $context
[118] Fix | Delete
*
[119] Fix | Delete
* @return null
[120] Fix | Delete
*/
[121] Fix | Delete
public function debug($message, array $context = array())
[122] Fix | Delete
{
[123] Fix | Delete
$this->log(NF_Abstracts_LogLevel::DEBUG, $message, $context);
[124] Fix | Delete
}
[125] Fix | Delete
}
[126] Fix | Delete
[127] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function