LogHandler

@objc public class LogHandler: NSObject

A class that wraps a log handling closure. This is needed to be able to store the handler in a weakly referenced NSHashTable.

  • Initializes the LogHandler instance with the given closure.

    Declaration

    Swift

    public init(_ handler: @escaping (Any) -> Void)

    Parameters

    handler

    A closure that handles the logging of the parameter passed to it.