CoreCryptoLogger

public protocol CoreCryptoLogger : AnyObject, Sendable

This trait is used to provide a callback mechanism to hook up the respective platform logging system.

  • Core Crypto will call this method whenever it needs to log a message.

    This function catches panics and other unexpected errors. In those cases, it writes to stderr.

    Declaration

    Swift

    func log(level: CoreCryptoLogLevel, message: String, context: String?) throws