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
DebugBar\DebugBar
|
#
getDebugbar( )
Get our debugbar object
Returns
DebugBar\DebugBar
|
public
|
|
public
|
#
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.
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.
|
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
|
#
startTime( string $name = 'XOOPS', string|null $label = null )
Start a timer
Parameters
- $name
- name of the timer
- $label
- optional label for this timer
|
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
|
|
public
|
#
dump( mixed $var )
Dump a variable to the messages pane
Dump a variable to the messages pane
Parameters
|
public
|
#
stackData( )
stackData - stash log data before a redirect
stackData - stash log data before a redirect
|
public
|
#
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.
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.
|
public
string
|
#
render( string $output )
Output buffering callback inserting logger dump in page output
Output buffering callback inserting logger dump in page output
Parameters
- $output
- output buffer to add logger rendering to
Returns
string output
|
public
|
#
renderDebugBar( )
dump everything we have // was __destruct()
dump everything we have // was __destruct()
|
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
|