\Horde_ActiveSync_Log_Factory

Summary

Methods
Properties
Constants
__construct()
create()
No public properties found
No constants found
No protected methods found
$_params
N/A
No private methods found
No private properties found
N/A

Properties

$_params

$_params : array

Parameter array.

Type

array

Methods

__construct()

__construct(array  $params) 

Const'r

Parameters

array $params

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.

Throws

\InvalidArgumentException

create()

create(array  $properties = array()) : \Horde_Log_Logger

Creates and configures the logger object.

Parameters

array $properties

The property array. Sould contain:

  • DeviceId: The device id of the current client.
  • Cmd: The current command being handled, if known.

Returns

\Horde_Log_Logger —

The logger object, correctly configured.