XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_Plugins_LoggerPlugin Class Reference
Inheritance diagram for Swift_Plugins_LoggerPlugin:
Inheritance graph

Public Member Functions

 __construct (Swift_Plugins_Logger $logger)
 
 add ($entry)
 
 beforeTransportStarted (Swift_Events_TransportChangeEvent $evt)
 
 beforeTransportStopped (Swift_Events_TransportChangeEvent $evt)
 
 clear ()
 
 commandSent (Swift_Events_CommandEvent $evt)
 
 dump ()
 
 exceptionThrown (Swift_Events_TransportExceptionEvent $evt)
 
 responseReceived (Swift_Events_ResponseEvent $evt)
 
 transportStarted (Swift_Events_TransportChangeEvent $evt)
 
 transportStopped (Swift_Events_TransportChangeEvent $evt)
 

Private Attributes

 $_logger
 

Detailed Description

Definition at line 30 of file LoggerPlugin.php.

Constructor & Destructor Documentation

Swift_Plugins_LoggerPlugin::__construct ( Swift_Plugins_Logger  $logger)

Create a new LoggerPlugin using $logger.

Parameters
Swift_Plugins_Logger$logger

Definition at line 44 of file LoggerPlugin.php.

Member Function Documentation

Swift_Plugins_LoggerPlugin::add (   $entry)

Add a log entry.

Parameters
string$entry

Implements Swift_Plugins_Logger.

Definition at line 54 of file LoggerPlugin.php.

Swift_Plugins_LoggerPlugin::beforeTransportStarted ( Swift_Events_TransportChangeEvent  $evt)

Invoked just before a Transport is started.

Parameters
Swift_Events_TransportChangeEvent$evt

Implements Swift_Events_TransportChangeListener.

Definition at line 104 of file LoggerPlugin.php.

References Swift_Events_EventObject\getSource().

Here is the call graph for this function:

Swift_Plugins_LoggerPlugin::beforeTransportStopped ( Swift_Events_TransportChangeEvent  $evt)

Invoked just before a Transport is stopped.

Parameters
Swift_Events_TransportChangeEvent$evt

Implements Swift_Events_TransportChangeListener.

Definition at line 126 of file LoggerPlugin.php.

References Swift_Events_EventObject\getSource().

Here is the call graph for this function:

Swift_Plugins_LoggerPlugin::clear ( )

Clear the log contents.

Implements Swift_Plugins_Logger.

Definition at line 62 of file LoggerPlugin.php.

Swift_Plugins_LoggerPlugin::commandSent ( Swift_Events_CommandEvent  $evt)

Invoked immediately following a command being sent.

Parameters
Swift_Events_ResponseEvent$evt

Implements Swift_Events_CommandListener.

Definition at line 82 of file LoggerPlugin.php.

References Swift_Events_CommandEvent\getCommand().

Here is the call graph for this function:

Swift_Plugins_LoggerPlugin::dump ( )

Get this log as a string.

Returns
string

Implements Swift_Plugins_Logger.

Definition at line 72 of file LoggerPlugin.php.

Swift_Plugins_LoggerPlugin::exceptionThrown ( Swift_Events_TransportExceptionEvent  $evt)

Invoked as a TransportException is thrown in the Transport system.

Parameters
Swift_Events_TransportExceptionEvent$evt

Implements Swift_Events_TransportExceptionListener.

Definition at line 148 of file LoggerPlugin.php.

References Swift_Events_EventObject\cancelBubble(), and Swift_Events_TransportExceptionEvent\getException().

Here is the call graph for this function:

Swift_Plugins_LoggerPlugin::responseReceived ( Swift_Events_ResponseEvent  $evt)

Invoked immediately following a response coming back.

Parameters
Swift_Events_ResponseEvent$evt

Implements Swift_Events_ResponseListener.

Definition at line 93 of file LoggerPlugin.php.

References Swift_Events_ResponseEvent\getResponse().

Here is the call graph for this function:

Swift_Plugins_LoggerPlugin::transportStarted ( Swift_Events_TransportChangeEvent  $evt)

Invoked immediately after the Transport is started.

Parameters
Swift_Events_TransportChangeEvent$evt

Implements Swift_Events_TransportChangeListener.

Definition at line 115 of file LoggerPlugin.php.

References Swift_Events_EventObject\getSource().

Here is the call graph for this function:

Swift_Plugins_LoggerPlugin::transportStopped ( Swift_Events_TransportChangeEvent  $evt)

Invoked immediately after the Transport is stopped.

Parameters
Swift_Events_TransportChangeEvent$evt

Implements Swift_Events_TransportChangeListener.

Definition at line 137 of file LoggerPlugin.php.

References Swift_Events_EventObject\getSource().

Here is the call graph for this function:

Member Data Documentation

Swift_Plugins_LoggerPlugin::$_logger
private

The logger which is delegated to

Definition at line 37 of file LoggerPlugin.php.


The documentation for this class was generated from the following file: