PureeOutput

interface PureeOutput

Interface for log output destinations in the Puree-KMP logging system.

PureeOutput defines the contract for components that can receive and process serialized logs. Implementations of this interface handle the actual delivery of logs to their final destinations, such as console, file, network services, or other logging systems.

Outputs are registered with the PureeLogger through the Puree builder and are associated with specific log types. When a log is posted, it will be routed to all outputs that have been registered for its type.

Inheritors

Functions

Link copied to clipboard
abstract fun emit(log: JsonObject)

Emits a log to its destination.