XOOPS RMCommon Utilities
2.1.8.91RC
|
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 | |
Definition at line 30 of file LoggerPlugin.php.
Swift_Plugins_LoggerPlugin::__construct | ( | Swift_Plugins_Logger | $logger | ) |
Create a new LoggerPlugin using $logger.
Swift_Plugins_Logger | $logger |
Definition at line 44 of file LoggerPlugin.php.
Swift_Plugins_LoggerPlugin::add | ( | $entry | ) |
Add a log entry.
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.
Swift_Events_TransportChangeEvent | $evt |
Implements Swift_Events_TransportChangeListener.
Definition at line 104 of file LoggerPlugin.php.
References Swift_Events_EventObject\getSource().
Swift_Plugins_LoggerPlugin::beforeTransportStopped | ( | Swift_Events_TransportChangeEvent | $evt | ) |
Invoked just before a Transport is stopped.
Swift_Events_TransportChangeEvent | $evt |
Implements Swift_Events_TransportChangeListener.
Definition at line 126 of file LoggerPlugin.php.
References Swift_Events_EventObject\getSource().
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.
Swift_Events_ResponseEvent | $evt |
Implements Swift_Events_CommandListener.
Definition at line 82 of file LoggerPlugin.php.
References Swift_Events_CommandEvent\getCommand().
Swift_Plugins_LoggerPlugin::dump | ( | ) |
Get this log as a 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.
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().
Swift_Plugins_LoggerPlugin::responseReceived | ( | Swift_Events_ResponseEvent | $evt | ) |
Invoked immediately following a response coming back.
Swift_Events_ResponseEvent | $evt |
Implements Swift_Events_ResponseListener.
Definition at line 93 of file LoggerPlugin.php.
References Swift_Events_ResponseEvent\getResponse().
Swift_Plugins_LoggerPlugin::transportStarted | ( | Swift_Events_TransportChangeEvent | $evt | ) |
Invoked immediately after the Transport is started.
Swift_Events_TransportChangeEvent | $evt |
Implements Swift_Events_TransportChangeListener.
Definition at line 115 of file LoggerPlugin.php.
References Swift_Events_EventObject\getSource().
Swift_Plugins_LoggerPlugin::transportStopped | ( | Swift_Events_TransportChangeEvent | $evt | ) |
Invoked immediately after the Transport is stopped.
Swift_Events_TransportChangeEvent | $evt |
Implements Swift_Events_TransportChangeListener.
Definition at line 137 of file LoggerPlugin.php.
References Swift_Events_EventObject\getSource().
|
private |
The logger which is delegated to
Definition at line 37 of file LoggerPlugin.php.