Class logger
This is the primary logger class which sets up the plugin and passes relevant calls to the plugin.
public
|
#
__construct(
array|string
$config = false
)
Class constructor
Class constructor Parameters
|
public
|
#
__destruct(
)
Class destructor always stops the logger plugin
Class destructor always stops the logger plugin |
public
|
|
public
|
|
public
|
|
public
boolean
|
#
loadPlugin(
string
$plugin
)
Create an instance of the plugin class
Create an instance of the plugin class Parameters
Returnsboolean |
public
object
|
|
public
|
#
log(
$level,
$message
)
Log an entry. The level and message are passed on to the plugin's log() method.
Also calls the plugin's start() method if the plugin is not ready.
Log an entry. The level and message are passed on to the plugin's log() method. Also calls the plugin's start() method if the plugin is not ready. |
string
|
version
|
'3.1.4' |
|
integer
|
modeRealTime
|
1 |
|
integer
|
modeBuffered
|
2 |
private
|
$_plugin | null |
|
private
boolean
|
$_pluginError | false |
|
private
boolean
|
$_pluginErrorMessage | false |
|
private
array
|
$_pluginProperties | array() |
|
protected
|
$logFile | null |
|
protected
|
$logFileHandle | STDOUT |
|
protected
integer
|
$logMode | |
|
protected
integer
|
$level | 5 |
|
protected
boolean
|
$pluginReady | false |
|
protected
array
|
$config | array(
'level' => 5,
'plugin' => 'Text',
'dateFormat' => 'Y-m-d H:i:s',
'breakOnError' => false,
) |
|
public
|
$timeStart | null |
|
public
|
$timeStop | null |
|
public
boolean
|
$breakOnError | false |