PureeLogSerializer

Interface for serializing log objects into JSON format.

This interface defines the contract for converting PureeLog objects into a JSON representation that can be processed by outputs. Implementations of this interface handle the platform-specific serialization details, allowing the logging system to work with structured data across different platforms.

An instance of this interface is provided to com.cookpad.puree.kmp.PureeLogger through the com.cookpad.puree.kmp.Puree builder during initialization.

Inheritors

Functions

Link copied to clipboard
abstract fun <T : PureeLog> serialize(log: T, platformClass: PlatformClass<T>): JsonObject

Serializes a log object into JSON format.