XOOPS
2.6.0
|
Public Member Functions | |
__call ($method, $args) | |
__get ($var) | |
__set ($var, $val) | |
addLogger ($logger) | |
alert ($message, array $context=array()) | |
critical ($message, array $context=array()) | |
debug ($message, array $context=array()) | |
emergency ($message, array $context=array()) | |
error ($message, array $context=array()) | |
handleError ($errno, $errstr, $errfile, $errline) | |
handleException ($e) | |
info ($message, array $context=array()) | |
log ($level, $message, array $context=array()) | |
notice ($message, array $context=array()) | |
quiet () | |
sanitizePath ($path) | |
warning ($message, array $context=array()) | |
Static Public Member Functions | |
static | getInstance () |
Private Member Functions | |
deprecatedMessage () | |
reportFatalError ($msg) | |
Private Attributes | |
$loggers = array() | |
$logging_active = false | |
Definition at line 46 of file Logger.php.
Xoops\Core\Logger::__call | ( | $method, | |
$args | |||
) |
Keep deprecated calls from failing
string | $method | method |
string | $args | arguments |
Definition at line 452 of file Logger.php.
References Xoops\Core\Logger\deprecatedMessage().
Xoops\Core\Logger::__get | ( | $var | ) |
Keep deprecated calls from failing
string | $var | property |
Definition at line 437 of file Logger.php.
References Xoops\Core\Logger\deprecatedMessage().
Xoops\Core\Logger::__set | ( | $var, | |
$val | |||
) |
Keep deprecated calls from failing
string | $var | property |
string | $val | value |
Definition at line 418 of file Logger.php.
References $var, Xoops\Core\Logger\deprecatedMessage(), and Xoops\Core\Logger\quiet().
Xoops\Core\Logger::addLogger | ( | $logger | ) |
add a PSR-3 compatible logger to the chain
object | $logger | a PSR-3 compatible logger object |
Definition at line 234 of file Logger.php.
Xoops\Core\Logger::alert | ( | $message, | |
array | $context = array() |
||
) |
Action must be taken immediately.
Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
string | $message | message |
array | $context | array of context data for this log entry |
Definition at line 266 of file Logger.php.
References Xoops\Core\Logger\log().
Xoops\Core\Logger::critical | ( | $message, | |
array | $context = array() |
||
) |
Critical conditions.
Example: Application component unavailable, unexpected exception.
string | $message | message |
array | $context | array of context data for this log entry |
Definition at line 281 of file Logger.php.
References Xoops\Core\Logger\log().
Xoops\Core\Logger::debug | ( | $message, | |
array | $context = array() |
||
) |
Detailed debug information.
string | $message | message |
array | $context | array of context data for this log entry |
Definition at line 352 of file Logger.php.
References Xoops\Core\Logger\log().
|
private |
issue a deprecated warning
Definition at line 462 of file Logger.php.
References $xoops, and Xoops\getInstance().
Referenced by Xoops\Core\Logger\__call(), Xoops\Core\Logger\__get(), and Xoops\Core\Logger\__set().
Xoops\Core\Logger::emergency | ( | $message, | |
array | $context = array() |
||
) |
System is unusable.
string | $message | message |
array | $context | array of context data for this log entry |
Definition at line 250 of file Logger.php.
References Xoops\Core\Logger\log().
Xoops\Core\Logger::error | ( | $message, | |
array | $context = array() |
||
) |
Runtime errors that do not require immediate action but should typically be logged and monitored.
string | $message | message |
array | $context | array of context data for this log entry |
Definition at line 295 of file Logger.php.
References Xoops\Core\Logger\log().
|
static |
Xoops\Core\Logger::handleError | ( | $errno, | |
$errstr, | |||
$errfile, | |||
$errline | |||
) |
Error handling callback.
This will
integer | $errno | error number |
string | $errstr | error message |
string | $errfile | file |
integer | $errline | line number |
Definition at line 95 of file Logger.php.
References $msg, _XOOPS_FATAL_BACKTRACE, XoopsLocaleEn_US\E_LOGGER_ERROR, XoopsLocaleEn_US\E_LOGGER_NOTICE, XoopsLocaleEn_US\E_LOGGER_STRICT, XoopsLocaleEn_US\E_LOGGER_UNKNOWN, XoopsLocaleEn_US\E_LOGGER_WARNING, XoopsLocaleEn_US\EF_LOGGER_FILELINE, exit, Xoops\Core\Logger\log(), Xoops\Core\Logger\reportFatalError(), Xoops\Core\Logger\sanitizePath(), and WARNING.
Xoops\Core\Logger::handleException | ( | $e | ) |
Exception handling callback.
This will
Exception | $e | uncaught exception |
Definition at line 176 of file Logger.php.
References $msg, and Xoops\Core\Logger\reportFatalError().
Xoops\Core\Logger::info | ( | $message, | |
array | $context = array() |
||
) |
Interesting events.
Example: User logs in, SQL logs.
string | $message | message |
array | $context | array of context data for this log entry |
Definition at line 339 of file Logger.php.
References Xoops\Core\Logger\log().
Xoops\Core\Logger::log | ( | $level, | |
$message, | |||
array | $context = array() |
||
) |
Logs with an arbitrary level.
mixed | $level | PSR-3 LogLevel constant |
string | $message | message |
array | $context | array of context data for this log entry |
Definition at line 366 of file Logger.php.
Referenced by Xoops\Core\Logger\alert(), Xoops\Core\Logger\critical(), Xoops\Core\Logger\debug(), Xoops\Core\Logger\emergency(), Xoops\Core\Logger\error(), Xoops\Core\Logger\handleError(), Xoops\Core\Logger\info(), Xoops\Core\Logger\notice(), Xoops\Core\Logger\reportFatalError(), and Xoops\Core\Logger\warning().
Xoops\Core\Logger::notice | ( | $message, | |
array | $context = array() |
||
) |
Normal but significant events.
string | $message | message |
array | $context | array of context data for this log entry |
Definition at line 324 of file Logger.php.
References Xoops\Core\Logger\log().
Xoops\Core\Logger::quiet | ( | ) |
quiet - turn off output if output is rendered in XOOPS page output. This is intended to assist ajax code that may fail with any extra content the logger may introduce.
It should have no effect on loggers using other methods, such a write to file.
Definition at line 391 of file Logger.php.
Referenced by Xoops\Core\Logger\__set().
|
private |
Definition at line 182 of file Logger.php.
References $msg, _XOOPS_FATAL_MESSAGE, Xoops\Core\Logger\log(), and Xoops\Core\Logger\sanitizePath().
Referenced by Xoops\Core\Logger\handleError(), and Xoops\Core\Logger\handleException().
Xoops\Core\Logger::sanitizePath | ( | $path | ) |
clean a path to remove sensitive details
string | $path | path to sanitize |
Definition at line 200 of file Logger.php.
References $path, and XoopsBaseConfig\get().
Referenced by Xoops\Core\Logger\handleError(), and Xoops\Core\Logger\reportFatalError().
Xoops\Core\Logger::warning | ( | $message, | |
array | $context = array() |
||
) |
Exceptional occurrences that are not errors.
Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
string | $message | message |
array | $context | array of context data for this log entry |
Definition at line 311 of file Logger.php.
References Xoops\Core\Logger\log(), and WARNING.
|
private |
Definition at line 51 of file Logger.php.
|
private |
Definition at line 56 of file Logger.php.