NativeLoggerProvider
A singleton class that manages the logging mechanism for Nativeblocks. NativeLoggerProvider allows the registration and retrieval of custom loggers implementing the INativeLogger protocol.
class NativeLoggerProvider
INativeLogger
Protocol that defines the behavior for a native logger. The INativeLogger protocol is used for logging events within the Nativeblocks SDK.
public protocol INativeLogger
Requirements
log(eventName:parameters:)
Logs an event with the specified name and parameters.
func log(eventName: String, parameters: [String: String])
Parameters
- eventName: The name of the event to be logged.
- parameters: A dictionary of parameters that provide additional information about the event.