TYPO3  7.6
Public Member Functions | Private Attributes | List of all members
Swift_Plugins_LoggerPlugin Class Reference
Inheritance diagram for Swift_Plugins_LoggerPlugin:
Swift_Events_CommandListener Swift_Events_ResponseListener Swift_Events_TransportChangeListener Swift_Events_TransportExceptionListener Swift_Plugins_Logger Swift_Events_EventListener Swift_Events_EventListener Swift_Events_EventListener Swift_Events_EventListener

Public Member Functions

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

Private Attributes

 $_logger
 

Detailed Description

Does real time logging of Transport level information.

Author
Chris Corbyn

Definition at line 16 of file LoggerPlugin.php.

Constructor & Destructor Documentation

__construct ( Swift_Plugins_Logger  $logger)

Create a new LoggerPlugin using $logger.

Parameters
Swift_Plugins_Logger$logger

Definition at line 26 of file LoggerPlugin.php.

Member Function Documentation

add (   $entry)

Add a log entry.

Parameters
string$entry

Implements Swift_Plugins_Logger.

Definition at line 36 of file LoggerPlugin.php.

beforeTransportStarted ( Swift_Events_TransportChangeEvent  $evt)

Invoked just before a Transport is started.

Parameters
Swift_Events_TransportChangeEvent$evt

Implements Swift_Events_TransportChangeListener.

Definition at line 86 of file LoggerPlugin.php.

References Swift_Events_EventObject\getSource().

beforeTransportStopped ( Swift_Events_TransportChangeEvent  $evt)

Invoked just before a Transport is stopped.

Parameters
Swift_Events_TransportChangeEvent$evt

Implements Swift_Events_TransportChangeListener.

Definition at line 108 of file LoggerPlugin.php.

References Swift_Events_EventObject\getSource().

clear ( )

Clear the log contents.

Implements Swift_Plugins_Logger.

Definition at line 44 of file LoggerPlugin.php.

commandSent ( Swift_Events_CommandEvent  $evt)

Invoked immediately following a command being sent.

Parameters
Swift_Events_CommandEvent$evt

Implements Swift_Events_CommandListener.

Definition at line 64 of file LoggerPlugin.php.

References Swift_Events_CommandEvent\getCommand().

dump ( )

Get this log as a string.

Returns
string

Implements Swift_Plugins_Logger.

Definition at line 54 of file LoggerPlugin.php.

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 130 of file LoggerPlugin.php.

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

responseReceived ( Swift_Events_ResponseEvent  $evt)

Invoked immediately following a response coming back.

Parameters
Swift_Events_ResponseEvent$evt

Implements Swift_Events_ResponseListener.

Definition at line 75 of file LoggerPlugin.php.

References $response, and Swift_Events_ResponseEvent\getResponse().

transportStarted ( Swift_Events_TransportChangeEvent  $evt)

Invoked immediately after the Transport is started.

Parameters
Swift_Events_TransportChangeEvent$evt

Implements Swift_Events_TransportChangeListener.

Definition at line 97 of file LoggerPlugin.php.

References Swift_Events_EventObject\getSource().

transportStopped ( Swift_Events_TransportChangeEvent  $evt)

Invoked immediately after the Transport is stopped.

Parameters
Swift_Events_TransportChangeEvent$evt

Implements Swift_Events_TransportChangeListener.

Definition at line 119 of file LoggerPlugin.php.

References Swift_Events_EventObject\getSource().

Member Data Documentation

$_logger
private

The logger which is delegated to

Definition at line 19 of file LoggerPlugin.php.