Horde_ActiveSync_Log_Factory
in package
implements
Horde_ActiveSync_Interface_LoggerFactory
Tags
Interfaces, Classes, Traits and Enums
- Horde_ActiveSync_Interface_LoggerFactory
- Horde_ActiveSync_Interface_LoggerFactory:: Defines an interface for a factory object that knows how to provide an appropriate Horde_Log_Logger object.
Table of Contents
- $_params : array<string|int, mixed>
- Parameter array.
- __construct() : mixed
- Const'r
- create() : Horde_Log_Logger
- Creates and configures the logger object.
Properties
$_params
Parameter array.
protected
array<string|int, mixed>
$_params
Methods
__construct()
Const'r
public
__construct(array<string|int, mixed> $params) : mixed
Parameters
- $params : array<string|int, mixed>
-
Factory parameters. Must contain:
- type: The type of log. ['onefile' | 'perdevice' | 'perrequest']
- path: The path to either the log file (for 'onefile' type) or the logging directory (for 'perdevice' or 'perrequest' types).
- level: The logging level. Defaults to META. MUST be one of [CLIENT | META]. CLIENT logs all WBXML sent/received plus minimal information messages. META will log CLIENT plus all additional debug messaging.
Tags
Return values
mixed —create()
Creates and configures the logger object.
public
create([array<string|int, mixed> $properties = array() ]) : Horde_Log_Logger
Parameters
- $properties : array<string|int, mixed> = array()
-
The property array. Sould contain:
- DeviceId: The device id of the current client.
- Cmd: The current command being handled, if known.
Return values
Horde_Log_Logger —The logger object, correctly configured.