filter

fun filter(filter: PureeFilter, vararg logTypes: KClass<out PureeLog>): Puree

Registers a filter to be applied to the specified log types.

Filters are used to modify or conditionally process logs before they are sent to outputs. Multiple filters can be registered for the same log type, and they will be applied in the order they were registered.

Return

This Puree instance for method chaining

Parameters

filter

The filter to apply to the specified log types

logTypes

Variable number of Kotlin classes representing the log types to which the filter should be applied

fun filter(filter: <Error class: unknown class>, logTypes: NSArray): Puree

Registers a filter to be applied to the specified log types.

Filters are used to modify or conditionally process logs before they are sent to outputs. Multiple filters can be registered for the same log type, and they will be applied in the order they were registered.

Return

This Puree instance for method chaining

Parameters

filter

The filter to apply to the specified log types

logTypes

NSArray of Objective-C classes representing the log types to which the filter should be applied