output

fun output(output: PureeOutput, vararg logTypes: KClass<out PureeLog>): Puree

Registers an output destination for the specified log types.

Outputs define where logs will be sent (e.g., console, file, network). Multiple outputs can be registered for the same log type. If the output is a buffered output, it will be managed by the logger's lifecycle.

Return

This Puree instance for method chaining

Parameters

output

The output destination to register

logTypes

Variable number of Kotlin classes representing the log types to send to this output

Throws

If attempting to register a buffered output with a duplicate uniqueId

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

Registers an output destination for the specified log types.

Outputs define where logs will be sent (e.g., console, file, network). Multiple outputs can be registered for the same log type. If the output is a buffered output, it will be managed by the logger's lifecycle.

Return

This Puree instance for method chaining

Parameters

output

The output destination to register

logTypes

NSArray of Objective-C classes representing the log types to send to this output

Throws

If attempting to register a buffered output with a duplicate uniqueId