IFilter
in
Log filtering interface for the Neuron logging system.
This interface defines the contract for log filters, which provide conditional processing and transformation of log entries before they reach their final destination. Filters enable sophisticated log processing including:
- Conditional logging based on level, content, or context
- Log entry transformation and enrichment
- Rate limiting and sampling
- Sensitive data scrubbing and redaction
- Log routing and conditional forwarding
Filter behavior:
- Return the Data object (modified or unmodified) to continue processing
- Return null to prevent the log entry from being written
- Filters are applied in the order they were added to destinations
- Each filter receives the output of the previous filter in the chain
Tags
Table of Contents
Methods
Methods
filter()
public
filter(Data $data) : Data|null
Parameters
- $data : Data
Return values
Data|null —Return null if no logging should be performed.