XOOPS
2.6.0
|
Public Member Functions | |
__construct () | |
addBlock ($name, $cached=false, $cachetime=0) | |
addDeprecated ($msg) | |
addException ($e) | |
addExtra ($name, $msg) | |
addQuery ($sql, $error=null, $errno=null, $query_time=null) | |
alert ($message, array $context=array()) | |
critical ($message, array $context=array()) | |
debug ($message, array $context=array()) | |
disable () | |
dump ($mode= '') | |
dumpTime ($name= 'XOOPS', $unset=false) | |
emergency ($message, array $context=array()) | |
enable () | |
enableRendering () | |
error ($message, array $context=array()) | |
info ($message, array $context=array()) | |
isEnable () | |
log ($level, $message, array $context=array()) | |
notice ($message, array $context=array()) | |
quiet () | |
render ($output) | |
sanitizePath ($path) | |
setConfigs ($configs) | |
startTime ($name= 'XOOPS') | |
stopTime ($name= 'XOOPS') | |
warning ($message, array $context=array()) | |
Static Public Member Functions | |
static | getInstance () |
Protected Attributes | |
$activated = false | |
$blocks = array() | |
$configs = false | |
$deprecated = array() | |
$errors = array() | |
$extra = array() | |
$logend = array() | |
$logstart = array() | |
$queries = array() | |
$renderingEnabled = false | |
$usePopup = false | |
Private Member Functions | |
addToTheme () | |
Definition at line 31 of file legacylogger.php.
LegacyLogger::__construct | ( | ) |
constructor
Definition at line 86 of file legacylogger.php.
LegacyLogger::addBlock | ( | $name, | |
$cached = false , |
|||
$cachetime = 0 |
|||
) |
Log display of a block
string | $name | name of the block |
bool | $cached | was the block cached? |
int | $cachetime | cachetime of the block |
Definition at line 255 of file legacylogger.php.
References $name.
LegacyLogger::addDeprecated | ( | $msg | ) |
Log messages for deprecated functions
string | $msg | name for the entry |
Definition at line 284 of file legacylogger.php.
References $msg.
LegacyLogger::addException | ( | $e | ) |
Log exceptions
Exception | $e | name for the entry |
Definition at line 298 of file legacylogger.php.
References log(), and sanitizePath().
LegacyLogger::addExtra | ( | $name, | |
$msg | |||
) |
Log extra information
string | $name | name for the entry |
string | $msg | text message for the entry |
Definition at line 270 of file legacylogger.php.
Referenced by dump().
LegacyLogger::addQuery | ( | $sql, | |
$error = null , |
|||
$errno = null , |
|||
$query_time = null |
|||
) |
Log a database query
string | $sql | sql that was processed |
string | $error | error message |
int | $errno | error number |
float | $query_time | execution time |
Definition at line 237 of file legacylogger.php.
|
private |
Add our resources to the theme as soon as it is available, otherwise return
Definition at line 182 of file legacylogger.php.
References $GLOBALS.
LegacyLogger::alert | ( | $message, | |
array | $context = array() |
||
) |
PSR-3 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 additional context |
Definition at line 646 of file legacylogger.php.
References log().
LegacyLogger::critical | ( | $message, | |
array | $context = array() |
||
) |
PSR-3 Critical conditions.
Example: Application component unavailable, unexpected exception.
string | $message | message |
array | $context | array of additional context |
Definition at line 663 of file legacylogger.php.
References log().
LegacyLogger::debug | ( | $message, | |
array | $context = array() |
||
) |
PSR-3 Detailed debug information.
string | $message | message |
array | $context | array of additional context |
Definition at line 744 of file legacylogger.php.
References log().
LegacyLogger::disable | ( | ) |
LegacyLogger::dump | ( | $mode = '' | ) |
Dump output
string | $mode | unused |
Definition at line 378 of file legacylogger.php.
References $content, $count, $error, $sql, $view, $xoops, _MD_LOGGER_ALL, _MD_LOGGER_BLOCKS, _MD_LOGGER_CACHED, _MD_LOGGER_DEBUG, _MD_LOGGER_DEPRECATED, _MD_LOGGER_ERRORS, _MD_LOGGER_EXTRA, _MD_LOGGER_FILES, _MD_LOGGER_INCLUDED_FILES, _MD_LOGGER_MEM_ESTIMATED, _MD_LOGGER_MEM_USAGE, _MD_LOGGER_NONE, _MD_LOGGER_NOT_CACHED, _MD_LOGGER_QUERIES, _MD_LOGGER_TIMERS, _MD_LOGGER_TIMETOLOAD, _MD_LOGGER_TOTAL, XoopsLocaleEn_US\A_CLOSE, addExtra(), dumpTime(), XoopsBaseConfig\get(), Xoops_Locale_Abstract\getCharset(), Xoops\getInstance(), Xoops_Locale_Abstract\getLangCode(), and log().
Referenced by render().
LegacyLogger::dumpTime | ( | $name = 'XOOPS' , |
|
$unset = false |
|||
) |
get the current execution time of a timer
string | $name | name of the counter |
bool | $unset | removes counter from global log |
Definition at line 599 of file legacylogger.php.
Referenced by dump().
LegacyLogger::emergency | ( | $message, | |
array | $context = array() |
||
) |
PSR-3 System is unusable.
string | $message | message |
array | $context | array of additional context |
Definition at line 628 of file legacylogger.php.
References log().
LegacyLogger::enable | ( | ) |
Enable logger output rendering When output rendering is enabled, the logger will insert its output within the page content. If the string is found in the page content, the logger output will replace it, otherwise it will be inserted after all the page output.
Definition at line 144 of file legacylogger.php.
References $xoops, enableRendering(), and Xoops\getInstance().
LegacyLogger::enableRendering | ( | ) |
Enable logger output rendering When output rendering is enabled, the logger will insert its output within the page content. If the string is found in the page content, the logger output will replace it, otherwise it will be inserted after all the page output.
Definition at line 338 of file legacylogger.php.
Referenced by enable().
LegacyLogger::error | ( | $message, | |
array | $context = array() |
||
) |
PSR-3 Runtime errors that do not require immediate action but should typically be logged and monitored.
string | $message | message |
array | $context | array of additional context |
Definition at line 679 of file legacylogger.php.
References log().
|
static |
Get a reference to the only instance of this class
Definition at line 102 of file legacylogger.php.
Referenced by LoggerPreload\eventCoreDatabaseNoconn(), LoggerPreload\eventCoreDatabaseNodb(), LoggerPreload\eventCoreDatabaseQueryComplete(), LoggerPreload\eventCoreDeprecated(), LoggerPreload\eventCoreDisableerrorreporting(), LoggerPreload\eventCoreException(), LoggerPreload\eventCoreFooterEnd(), LoggerPreload\eventCoreFooterStart(), LoggerPreload\eventCoreHeaderEnd(), LoggerPreload\eventCoreHeaderStart(), LoggerPreload\eventCoreIncludeCommonAuthSuccess(), LoggerPreload\eventCoreIncludeCommonEnd(), LoggerPreload\eventCoreIncludeCommonStart(), LoggerPreload\eventCoreIncludeFunctionsRedirectheaderEnd(), LoggerPreload\eventCoreModuleAddlog(), LoggerPreload\eventCoreSecurityValidatetokenEnd(), LoggerPreload\eventCoreThemeblocksBuildblockStart(), LoggerPreload\eventCoreThemeCheckcacheSuccess(), LoggerPreload\eventCoreThemeRenderEnd(), and LoggerPreload\eventCoreThemeRenderStart().
LegacyLogger::info | ( | $message, | |
array | $context = array() |
||
) |
PSR-3 Interesting events.
Example: User logs in, SQL logs.
string | $message | message |
array | $context | array of additional context |
Definition at line 729 of file legacylogger.php.
References log().
LegacyLogger::isEnable | ( | ) |
report enabled status
Definition at line 162 of file legacylogger.php.
References $activated.
LegacyLogger::log | ( | $level, | |
$message, | |||
array | $context = array() |
||
) |
PSR-3 Logs with an arbitrary level.
mixed | $level | logging level |
string | $message | message |
array | $context | array of additional context |
Definition at line 760 of file legacylogger.php.
Referenced by addException(), alert(), critical(), debug(), dump(), emergency(), error(), info(), notice(), and warning().
LegacyLogger::notice | ( | $message, | |
array | $context = array() |
||
) |
PSR-3 Normal but significant events.
string | $message | message |
array | $context | array of additional context |
Definition at line 712 of file legacylogger.php.
References log().
LegacyLogger::quiet | ( | ) |
disable output for the benefit of ajax scripts
Definition at line 172 of file legacylogger.php.
LegacyLogger::render | ( | $output | ) |
Output buffering callback inserting logger dump in page output
string | $output | output buffer to add logger rendering to |
Definition at line 353 of file legacylogger.php.
References dump().
LegacyLogger::sanitizePath | ( | $path | ) |
sanitizePath
string | $path | path name to sanitize |
Definition at line 316 of file legacylogger.php.
References $path, and XoopsBaseConfig\get().
Referenced by addException().
LegacyLogger::setConfigs | ( | $configs | ) |
Save a copy of our config array
array | $configs | array of module/user config options |
Definition at line 120 of file legacylogger.php.
References $configs.
LegacyLogger::startTime | ( | $name = 'XOOPS' | ) |
Start a timer
string | $name | name of the timer |
Definition at line 206 of file legacylogger.php.
References $name.
LegacyLogger::stopTime | ( | $name = 'XOOPS' | ) |
Stop a timer
string | $name | name of the timer |
Definition at line 220 of file legacylogger.php.
References $name.
LegacyLogger::warning | ( | $message, | |
array | $context = array() |
||
) |
PSR-3 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 additional context |
Definition at line 697 of file legacylogger.php.
References log(), and WARNING.
|
protected |
Definition at line 76 of file legacylogger.php.
Referenced by isEnable().
|
protected |
Definition at line 41 of file legacylogger.php.
|
protected |
Definition at line 81 of file legacylogger.php.
Referenced by setConfigs().
|
protected |
Definition at line 66 of file legacylogger.php.
|
protected |
Definition at line 61 of file legacylogger.php.
|
protected |
Definition at line 46 of file legacylogger.php.
|
protected |
Definition at line 56 of file legacylogger.php.
|
protected |
Definition at line 51 of file legacylogger.php.
|
protected |
Definition at line 36 of file legacylogger.php.
|
protected |
Definition at line 71 of file legacylogger.php.
|
protected |
Definition at line 94 of file legacylogger.php.