logs requests and responses in their serialized and deserialized forms.

deactivated by default.

Note that this a crude logging system, with no levels, targets etc. like Log4j for example. It is as such to be used for development purposes, but not for production

package Amfphp_Plugins_Logger
author Ariel Sommeria-klein

 Methods

constructor.

__construct(array $config) 

Parameters

$config

array

optional key/value pairs in an associative array. Used to override default configuration values.

logs the deserialized request

filterDeserializedRequest(mixed $deserializedRequest) 

Parameters

$deserializedRequest

mixed

logs the deserialized response

filterDeserializedResponse(\packet $deserializedResponse) 

Parameters

$deserializedResponse

\packet

logs the serialized incoming packet

filterSerializedRequest(String $rawData) 

Parameters

$rawData

String

logs the deserialized incoming packet

filterSerializedResponse(mixed $rawData) 

Parameters

$rawData

mixed

write éessage to log file at LOG_FILE_PATH

logMessage(String $message) 
Static
see \LOG_FILE_PATH

Parameters

$message

String

Exceptions

\Amfphp_Core_Exception

 Constants

 

LOG_FILE_PATH

LOG_FILE_PATH