XOOPS
2.6.0
|
Public Member Functions | |
__construct () | |
__destruct () | |
addBlock ($name, $cached=false, $cachetime=0) | |
addDeprecated ($msg) | |
addException ($e) | |
addExtra ($name, $msg) | |
addQuery ($sql, $error=null, $errno=null, $query_time=null) | |
addSmarty () | |
alert ($message, array $context=array()) | |
critical ($message, array $context=array()) | |
debug ($message, array $context=array()) | |
disable () | |
dump ($var) | |
emergency ($message, array $context=array()) | |
enable () | |
enableRendering () | |
error ($message, array $context=array()) | |
getDebugbar () | |
info ($message, array $context=array()) | |
isEnable () | |
log ($level, $message, array $context=array()) | |
notice ($message, array $context=array()) | |
quiet () | |
render ($output) | |
stackData () | |
startTime ($name= 'XOOPS', $label=null) | |
stopTime ($name= 'XOOPS') | |
warning ($message, array $context=array()) | |
Static Public Member Functions | |
static | getInstance () |
Private Member Functions | |
addToTheme () | |
Private Attributes | |
$activated = false | |
$debugbar = false | |
$quietmode = false | |
$renderer = false | |
Definition at line 32 of file debugbarlogger.php.
DebugbarLogger::__construct | ( | ) |
constructor
Definition at line 57 of file debugbarlogger.php.
DebugbarLogger::__destruct | ( | ) |
dump everything we have
Definition at line 443 of file debugbarlogger.php.
References $_SERVER, _MD_DEBUGBAR_INCLUDED_FILES, _MD_DEBUGBAR_PHP_VERSION, addExtra(), addToTheme(), and Xmf\Debug\dumpQueuedTimers().
DebugbarLogger::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 292 of file debugbarlogger.php.
DebugbarLogger::addDeprecated | ( | $msg | ) |
Log messages for deprecated functions
string | $msg | name for the entry |
Definition at line 323 of file debugbarlogger.php.
References $msg, log(), and WARNING.
DebugbarLogger::addException | ( | $e | ) |
Log exceptions
Exception | $e | name for the entry |
Definition at line 337 of file debugbarlogger.php.
Referenced by startTime(), and stopTime().
DebugbarLogger::addExtra | ( | $name, | |
$msg | |||
) |
Log extra information
string | $name | name for the entry |
string | $msg | text message for the entry |
Definition at line 308 of file debugbarlogger.php.
References $msg, $name, and log().
Referenced by __destruct().
DebugbarLogger::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 266 of file debugbarlogger.php.
References $error, $sql, and log().
DebugbarLogger::addSmarty | ( | ) |
Dump Smarty variables
Definition at line 349 of file debugbarlogger.php.
References Xoops\getInstance().
|
private |
Add our resources to the theme as soon as it is available, otherwise return
Definition at line 159 of file debugbarlogger.php.
References $GLOBALS, $xoops, and Xoops\getInstance().
Referenced by __destruct(), enable(), and stopTime().
DebugbarLogger::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 497 of file debugbarlogger.php.
References log().
DebugbarLogger::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 514 of file debugbarlogger.php.
References log().
DebugbarLogger::debug | ( | $message, | |
array | $context = array() |
||
) |
PSR-3 Detailed debug information.
string | $message | message |
array | $context | array of additional context |
Definition at line 595 of file debugbarlogger.php.
References log().
DebugbarLogger::disable | ( | ) |
DebugbarLogger::dump | ( | $var | ) |
Dump a variable to the messages pane
mixed | $var | variable to dump |
Definition at line 379 of file debugbarlogger.php.
DebugbarLogger::emergency | ( | $message, | |
array | $context = array() |
||
) |
PSR-3 System is unusable.
string | $message | message |
array | $context | array of additional context |
Definition at line 479 of file debugbarlogger.php.
References log().
DebugbarLogger::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 107 of file debugbarlogger.php.
References $xoops, addToTheme(), enableRendering(), and Xoops\getInstance().
DebugbarLogger::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 406 of file debugbarlogger.php.
Referenced by enable().
DebugbarLogger::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 530 of file debugbarlogger.php.
References log().
DebugbarLogger::getDebugbar | ( | ) |
Get our debugbar object
Definition at line 83 of file debugbarlogger.php.
References $debugbar.
|
static |
Get a reference to the only instance of this class
Definition at line 67 of file debugbarlogger.php.
Referenced by DebugbarPreload\eventCoreDatabaseNoconn(), DebugbarPreload\eventCoreDatabaseNodb(), DebugbarPreload\eventCoreDeprecated(), DebugbarPreload\eventCoreDisableerrorreporting(), DebugbarPreload\eventCoreException(), DebugbarPreload\eventCoreFooterEnd(), DebugbarPreload\eventCoreFooterStart(), DebugbarPreload\eventCoreHeaderEnd(), DebugbarPreload\eventCoreHeaderStart(), DebugbarPreload\eventCoreIncludeCommonAuthSuccess(), DebugbarPreload\eventCoreIncludeCommonEnd(), DebugbarPreload\eventCoreIncludeCommonStart(), DebugbarPreload\eventCoreIncludeFunctionsRedirectheaderStart(), DebugbarPreload\eventCoreModuleAddlog(), DebugbarPreload\eventCoreSecurityValidatetokenEnd(), DebugbarPreload\eventCoreThemeblocksBuildblockStart(), DebugbarPreload\eventCoreThemeCheckcacheSuccess(), DebugbarPreload\eventCoreThemeRenderEnd(), DebugbarPreload\eventCoreThemeRenderStart(), DebugbarPreload\eventDebugLog(), DebugbarPreload\eventDebugTimerStart(), and DebugbarPreload\eventDebugTimerStop().
DebugbarLogger::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 580 of file debugbarlogger.php.
References log().
DebugbarLogger::isEnable | ( | ) |
report enabled status
Definition at line 138 of file debugbarlogger.php.
References $activated.
DebugbarLogger::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 |
If we have embedded channel in the context array, format the message approriatly using context values.
Definition at line 611 of file debugbarlogger.php.
References $msg, _MD_DEBUGBAR_CACHED, _MD_DEBUGBAR_NOT_CACHED, and WARNING.
Referenced by addBlock(), addDeprecated(), addExtra(), addQuery(), alert(), critical(), debug(), dump(), emergency(), error(), info(), notice(), and warning().
DebugbarLogger::notice | ( | $message, | |
array | $context = array() |
||
) |
PSR-3 Normal but significant events.
string | $message | message |
array | $context | array of additional context |
Definition at line 563 of file debugbarlogger.php.
References log().
DebugbarLogger::quiet | ( | ) |
disable output for the benefit of ajax scripts
Definition at line 148 of file debugbarlogger.php.
DebugbarLogger::render | ( | $output | ) |
Output buffering callback inserting logger dump in page output
string | $output | output buffer to add logger rendering to |
Definition at line 418 of file debugbarlogger.php.
References $xoops, and Xoops\getInstance().
DebugbarLogger::stackData | ( | ) |
stackData - stash log data before a redirect
Definition at line 389 of file debugbarlogger.php.
DebugbarLogger::startTime | ( | $name = 'XOOPS' , |
|
$label = null |
|||
) |
Start a timer
string | $name | name of the timer |
string | null | $label | optional label for this timer |
Definition at line 225 of file debugbarlogger.php.
References $name, and addException().
DebugbarLogger::stopTime | ( | $name = 'XOOPS' | ) |
Stop a timer
string | $name | name of the timer |
Definition at line 243 of file debugbarlogger.php.
References $name, addException(), and addToTheme().
DebugbarLogger::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 548 of file debugbarlogger.php.
References log(), and WARNING.
|
private |
Definition at line 47 of file debugbarlogger.php.
Referenced by isEnable().
|
private |
Definition at line 37 of file debugbarlogger.php.
Referenced by getDebugbar().
|
private |
Definition at line 52 of file debugbarlogger.php.
|
private |
Definition at line 42 of file debugbarlogger.php.