\Horde_Core_Factory_Logger

The abstract Horde injector class.

This class is used for factories that are intended to be directly called by the Horde_Injector instance.

Copyright 2011-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
create()
__construct()
available()
queue()
processQueue()
$error
No constants found
_getDriverName()
$_injector
$_queue
N/A
No private methods found
No private properties found
N/A

Properties

$error

$error : \Horde_Log_Exception

Stores the exception if the logger could not be started.

Type

\Horde_Log_Exception

$_injector

$_injector : \Horde_Injector

The injector.

Type

\Horde_Injector

$_queue

$_queue : array

Log queue.

Type

array

Methods

create()

create(\Horde_Injector  $injector) 

Parameters

\Horde_Injector $injector

__construct()

__construct(\Horde_Injector  $injector) 

Constructor.

Parameters

\Horde_Injector $injector

The injector to use.

available()

available() : boolean

Is the logger available?

Returns

boolean —

True if logging is available.

queue()

queue(\Horde_Core_Log_Object  $ob) 

Queue log entries to output once the framework is initialized.

Parameters

\Horde_Core_Log_Object $ob

processQueue()

processQueue(  $logger = null) 

Process the log queue.

Parameters

$logger

_getDriverName()

_getDriverName(string  $driver, string  $base) : string

Return the classname of the driver to load.

Parameters

string $driver

Driver name.

string $base

The base classname.

Throws

\Horde_Exception

Returns

string —

Classname.