Documentation

Swift_Plugins_Loggers_ArrayLogger
in package
implements Swift_Plugins_Logger

Logs to an Array backend.

Tags
author

Chris Corbyn

Interfaces, Classes and Traits

Swift_Plugins_Logger
Logs events in the Transport system.

Table of Contents

$log  : array<string|int, mixed>
The log contents.
$size  : int
Max size of the log.
__construct()  : mixed
Create a new ArrayLogger with a maximum of $size entries.
add()  : mixed
Add a log entry.
clear()  : mixed
Clear the log contents.
dump()  : string
Get this log as a string.

Properties

$log

The log contents.

private array<string|int, mixed> $log = []

Methods

__construct()

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

public __construct([mixed $size = 50 ]) : mixed
Parameters
$size : mixed = 50
Return values
mixed

add()

Add a log entry.

public add(string $entry) : mixed
Parameters
$entry : string
Return values
mixed

clear()

Clear the log contents.

public clear() : mixed
Return values
mixed

dump()

Get this log as a string.

public dump() : string
Return values
string

Search results