PHP Class Swift_Plugins_LoggerPlugin, Halite

Author: Chris Corbyn
Inheritance: implements Swift_Events_CommandListener, implements Swift_Events_ResponseListener, implements Swift_Events_TransportChangeListener, implements Swift_Events_TransportExceptionListener, implements Swift_Plugins_Logger
Show file Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

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

Method Details

__construct() public method

Create a new LoggerPlugin using $logger.
public __construct ( Swift_Plugins_Logger $logger )
$logger Swift_Plugins_Logger

add() public method

Add a log entry.
public add ( string $entry )
$entry string

beforeTransportStarted() public method

Invoked just before a Transport is started.
public beforeTransportStarted ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent

beforeTransportStopped() public method

Invoked just before a Transport is stopped.
public beforeTransportStopped ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent

clear() public method

Clear the log contents.
public clear ( )

commandSent() public method

Invoked immediately following a command being sent.
public commandSent ( Swift_Events_CommandEvent $evt )
$evt Swift_Events_CommandEvent

dump() public method

Get this log as a string.
public dump ( ) : string
return string

exceptionThrown() public method

Invoked as a TransportException is thrown in the Transport system.
public exceptionThrown ( Swift_Events_TransportExceptionEvent $evt )
$evt Swift_Events_TransportExceptionEvent

responseReceived() public method

Invoked immediately following a response coming back.
public responseReceived ( Swift_Events_ResponseEvent $evt )
$evt Swift_Events_ResponseEvent

transportStarted() public method

Invoked immediately after the Transport is started.
public transportStarted ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent

transportStopped() public method

Invoked immediately after the Transport is stopped.
public transportStopped ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent