Skip to content

Add buffer_size to buffered log handlers #1

@homersimpsons

Description

@homersimpsons

Issue

Long running process might go out of memory (OOM) if buffered log handlers are filled

while (true) {
    $this->bufferedLogHandler->info('test');
}

fingers_crossed is buffer based so it can run into this issue.

Fix

A buffer_size should be append to the config. This settings will tell the handler to keep only the nth most recent messages so this will avoid OOM.

The configuration doc can be found there (permalink)

A value of 100 should be far enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions