CoreCryptoLogger

public protocol CoreCryptoLogger : AnyObject, Sendable

A callback interface for forwarding CoreCrypto log messages to the platform’s logging system.

  • CoreCrypto 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