|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| __construct () | |
| startTime ($name='XOOPS') | |
| stopTime ($name='XOOPS') | |
| addQuery ($sql, $error=null, $errno=null) | |
| addBlock ($name, $cached=false, $cachetime=0) | |
| addExtra ($name, $msg) | |
| dumpQueries () | |
| dumpBlocks () | |
| dumpTime ($name='XOOPS') | |
| dumpExtra () | |
| dumpAll () | |
Static Public Member Functions | |
| static & | instance () |
Data Fields | |
| $queries = [] | |
| $blocks = [] | |
| $extra = [] | |
| $logstart = [] | |
| $logend = [] | |
Definition at line 19 of file logger.php.
| __construct | ( | ) |
| 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 100 of file logger.php.
| addExtra | ( | $name, | |
| $msg ) |
log extra information
| string | $name | name for the entry |
| int | $msg | text message for the entry |
Definition at line 111 of file logger.php.
| addQuery | ( | $sql, | |
| $error = null, | |||
| $errno = null ) |
log a database query
| string | $sql | SQL string |
| string | $error | error message (if any) |
| int | $errno | error number (if any) |
Definition at line 82 of file logger.php.
| dumpAll | ( | ) |
get all logged information formatted in HTML tables
Definition at line 199 of file logger.php.
| dumpBlocks | ( | ) |
get the logged blocks in a HTML table
Definition at line 142 of file logger.php.
| dumpExtra | ( | ) |
get extra information in a HTML table
Definition at line 182 of file logger.php.
| dumpQueries | ( | ) |
get the logged queries in a HTML table
Definition at line 121 of file logger.php.
| dumpTime | ( | $name = 'XOOPS' | ) |
get the current execution time of a timer
| string | $name | name of the counter |
Definition at line 164 of file logger.php.
|
static |
get a reference to the only instance of this class
Definition at line 45 of file logger.php.
| startTime | ( | $name = 'XOOPS' | ) |
| stopTime | ( | $name = 'XOOPS' | ) |
| $blocks = [] |
Definition at line 25 of file logger.php.
| $extra = [] |
Definition at line 26 of file logger.php.
| $logend = [] |
Definition at line 28 of file logger.php.
| $logstart = [] |
Definition at line 27 of file logger.php.
| $queries = [] |
Definition at line 24 of file logger.php.