Skip to content

Allow set max number of logs to collect #8

Description

@JoniJnm

To avoid memory problems, allow to set the maximum number of logs to collect, maybe here:

public function addLog(string $message, string $type, array $context = [])
{
$this->logs[] = [
$type,
$message,
$context,
array_slice(debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS), 1),
];
}

public function addStatement(array $data): void
{
$this->statements[] = $data;
}

one parameter in the constructor with the max number of "rows" or bytes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions