Flow PHP

LogRecordLimits

Read onlyYes
FinalYes

Configuration limits for log record data.

LogRecordLimits provides bounds on the amount of data a log record can collect, preventing unbounded memory growth and ensuring reasonable log record sizes.

Example usage:

$limits = new LogRecordLimits(
    attributeCountLimit: 64,
    attributeValueLengthLimit: 1024,
);

// Use defaults
$defaultLimits = LogRecordLimits::default();

Properties

$attributeCountLimit  : int
$attributeValueLengthLimit  : int|null

Methods

__construct()  : mixed
default()  : self
Create LogRecordLimits with default values.
unlimited()  : self
Create LogRecordLimits with unlimited values (for development/debugging).

Properties

$attributeCountLimit

public int $attributeCountLimit = self::DEFAULT_ATTRIBUTE_COUNT_LIMIT

$attributeValueLengthLimit

public int|null $attributeValueLengthLimit = null

Methods

__construct()

public __construct([int $attributeCountLimit = self::DEFAULT_ATTRIBUTE_COUNT_LIMIT ][, null|int $attributeValueLengthLimit = null ]) : mixed
Parameters
$attributeCountLimit : int = self::DEFAULT_ATTRIBUTE_COUNT_LIMIT

Maximum number of attributes per log record

$attributeValueLengthLimit : null|int = null

Maximum length for string attribute values (null = unlimited)

default()

Create LogRecordLimits with default values.

public static default() : self
Return values
self

unlimited()

Create LogRecordLimits with unlimited values (for development/debugging).

public static unlimited() : self
Return values
self

        
On this page

Search results