PHP Class Swift_Plugins_Loggers_ArrayLogger, Halite

Author: Chris Corbyn
Inheritance: implements Swift_Plugins_Logger
Mostrar archivo Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

Method Description
__construct ( $size = 50 ) Create a new ArrayLogger with a maximum of $size entries.
add ( string $entry ) Add a log entry.
clear ( ) Clear the log contents.
dump ( ) : string Get this log as a string.

Method Details

__construct() public method

Create a new ArrayLogger with a maximum of $size entries.
public __construct ( $size = 50 )

add() public method

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

clear() public method

Clear the log contents.
public clear ( )

dump() public method

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