Collects log information and present to PHPDebugBar for display.
Records information about database queries, blocks, and execution time
and various logs.
Methods summary
public
|
|
public static
object
|
#
getInstance( )
Get a reference to the only instance of this class
Get a reference to the only instance of this class
Returns
object LoggerAbstract reference to the only instance
|
public
|
|
public
|
|
public
|
#
xoopsDataProcessor( array $record )
adds Xoops specific information to the log record
adds Xoops specific information to the log record
Parameters
- $record
- log record contents
|
public
|
#
setConfigs( array $configs )
set configuration items
Parameters
- $configs
- module/user configuration items
|
public
boolean
|
#
isEnable( )
report enabled status
Returns
boolean
|
public
|
#
quiet( )
disable output for the benefit of ajax scripts
disable output for the benefit of ajax scripts
|
public
|
|
public
|
|
public
|
#
addQuery( string $sql, string $error = null, integer $errno = null, float $query_time = null )
Log a database query
Parameters
- $sql
- sql that was processed
- $error
- error message
- $errno
- error number
- $query_time
- execution time
|
public
|
#
addBlock( string $name, boolean $cached = false, integer $cachetime = 0 )
Log display of a block
Parameters
- $name
- name of the block
- $cached
- was the block cached?
- $cachetime
- cachetime of the block
|
public
|
#
addDeprecated( string $msg )
Log messages for deprecated functions
Log messages for deprecated functions
Parameters
|
public
|
|
public
string
|
#
sanitizePath( string $path )
sanitizePath
Parameters
- $path
- path name to sanitize
Returns
string path with top levels removed
|
public
null
|
#
emergency( string $message, array $context = array() )
PSR-3 System is unusable.
PSR-3 System is unusable.
Parameters
- $message
- message
- $context
- array of additional context
Returns
null
|
public
null
|
#
alert( string $message, array $context = array() )
PSR-3 Action must be taken immediately.
PSR-3 Action must be taken immediately.
Example: Entire website down, database unavailable, etc. This should
trigger the SMS alerts and wake you up.
Parameters
- $message
- message
- $context
- array of additional context
Returns
null
|
public
null
|
#
critical( string $message, array $context = array() )
PSR-3 Critical conditions.
PSR-3 Critical conditions.
Example: Application component unavailable, unexpected exception.
Parameters
- $message
- message
- $context
- array of additional context
Returns
null
|
public
null
|
#
error( string $message, array $context = array() )
PSR-3 Runtime errors that do not require immediate action but should typically
be logged and monitored.
PSR-3 Runtime errors that do not require immediate action but should typically
be logged and monitored.
Parameters
- $message
- message
- $context
- array of additional context
Returns
null
|
public
null
|
#
warning( string $message, array $context = array() )
PSR-3 Exceptional occurrences that are not errors.
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.
Parameters
- $message
- message
- $context
- array of additional context
Returns
null
|
public
null
|
#
notice( string $message, array $context = array() )
PSR-3 Normal but significant events.
PSR-3 Normal but significant events.
Parameters
- $message
- message
- $context
- array of additional context
Returns
null
|
public
null
|
#
info( string $message, array $context = array() )
PSR-3 Interesting events.
PSR-3 Interesting events.
Example: User logs in, SQL logs.
Parameters
- $message
- message
- $context
- array of additional context
Returns
null
|
public
null
|
#
debug( string $message, array $context = array() )
PSR-3 Detailed debug information.
PSR-3 Detailed debug information.
Parameters
- $message
- message
- $context
- array of additional context
Returns
null
|
public
null
|
#
log( mixed $level, string $message, array $context = array() )
PSR-3 Logs with an arbitrary level.
PSR-3 Logs with an arbitrary level.
Parameters
- $level
- logging level
- $message
- message
- $context
- array of additional context
Returns
null
|