Class Swift_Plugins_LoggerPlugin

InheritanceSwift_Plugins_LoggerPlugin
ImplementsSwift_Events_CommandListener, Swift_Events_ResponseListener, Swift_Events_TransportChangeListener, Swift_Events_TransportExceptionListener, Swift_Plugins_Logger

Does real time logging of Transport level information.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Create a new LoggerPlugin using $logger. Swift_Plugins_LoggerPlugin
add() Add a log entry. Swift_Plugins_LoggerPlugin
beforeTransportStarted() Invoked just before a Transport is started. Swift_Plugins_LoggerPlugin
beforeTransportStopped() Invoked just before a Transport is stopped. Swift_Plugins_LoggerPlugin
clear() Clear the log contents. Swift_Plugins_LoggerPlugin
commandSent() Invoked immediately following a command being sent. Swift_Plugins_LoggerPlugin
dump() Get this log as a string. Swift_Plugins_LoggerPlugin
exceptionThrown() Invoked as a TransportException is thrown in the Transport system. Swift_Plugins_LoggerPlugin
responseReceived() Invoked immediately following a response coming back. Swift_Plugins_LoggerPlugin
transportStarted() Invoked immediately after the Transport is started. Swift_Plugins_LoggerPlugin
transportStopped() Invoked immediately after the Transport is stopped. Swift_Plugins_LoggerPlugin

Method Details

__construct() public method

Create a new LoggerPlugin using $logger.

public void __construct ( Swift_Plugins_Logger $logger )
$logger Swift_Plugins_Logger
add() public method

Add a log entry.

public void add ( $entry )
$entry string
beforeTransportStarted() public method

Invoked just before a Transport is started.

public void beforeTransportStarted ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent
beforeTransportStopped() public method

Invoked just before a Transport is stopped.

public void beforeTransportStopped ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent
clear() public method

Clear the log contents.

public void clear ( )
commandSent() public method

Invoked immediately following a command being sent.

public void commandSent ( Swift_Events_CommandEvent $evt )
$evt Swift_Events_CommandEvent
dump() public method

Get this log as a string.

public string dump ( )
exceptionThrown() public method

Invoked as a TransportException is thrown in the Transport system.

public void exceptionThrown ( Swift_Events_TransportExceptionEvent $evt )
$evt Swift_Events_TransportExceptionEvent
responseReceived() public method

Invoked immediately following a response coming back.

public void responseReceived ( Swift_Events_ResponseEvent $evt )
$evt Swift_Events_ResponseEvent
transportStarted() public method

Invoked immediately after the Transport is started.

public void transportStarted ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent
transportStopped() public method

Invoked immediately after the Transport is stopped.

public void transportStopped ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent