Logs to an Array backend.

package Swift
subpackage Transport
author Chris Corbyn

 Methods

Create a new ArrayLogger with a maximum of $size entries.

__construct($size) 
var

Parameters

$size

Add a log entry.

add(string $entry) 

Parameters

$entry

string

Clear the log contents.

clear() 

Get this log as a string.

dump() : string

Returns

string

 Properties

 

$_log : array
access private
 

$_size : int
access private