Overview

Namespaces

  • None
  • opensourceame

Classes

  • logger
  • loggerPlugin
  • loggerPlugin_DB
  • loggerPlugin_HTML
  • loggerPlugin_SysLog
  • loggerPlugin_Text
  • loggerPlugin_XML
  • loggerPlugin_zTemplate
  • process
  • processManager
  • Overview
  • Namespace
  • Class
  • Tree

Class logger

This is the primary logger class which sets up the plugin and passes relevant calls to the plugin.

Namespace: opensourceame
Located at logger/opensourceame.logger.php
Methods summary
public
# __construct( array|string $config = false )
Class constructor

Class constructor

Parameters

$config
array|string
Configuration for the logger
public
# __destruct( )
Class destructor always stops the logger plugin

Class destructor always stops the logger plugin

public
# __set( unknown_type $name, unknown_type $value )
Magic set method copies the value over to the plugin

Magic set method copies the value over to the plugin

Parameters

$name
unknown_type
$value
unknown_type
public
# __call( $method, $arguments )
Passes the call onto the plugin if no public local method exists

Passes the call onto the plugin if no public local method exists

public
# error( $message )
public boolean
# loadPlugin( string $plugin )
Create an instance of the plugin class

Create an instance of the plugin class

Parameters

$plugin
string
The plugin name (e.g. XML)

Returns

boolean
public object
# plugin( )
Returns the plugin object

Returns the plugin object

Returns

object
Plugin 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.

Constants summary
string version '3.1.4'
#
integer modeRealTime 1
#
integer modeBuffered 2
#
Properties summary
private $_plugin null
#
private boolean $_pluginError false
#
private boolean $_pluginErrorMessage false
#
private array $_pluginProperties array()
#
protected $logFile null
#
protected $logFileHandle STDOUT
#
protected integer $logMode opensourceame\logger::modeRealTime
#
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
#
OpenSourceAme API Documentation API documentation generated by ApiGen.
Generated using the TokenReflection library.