AWSUnifiedLoggingPlugin

public final class AWSUnifiedLoggingPlugin : LoggingCategoryPlugin, @unchecked Sendable
extension AWSUnifiedLoggingPlugin: AmplifyVersionable

A Logging category plugin that forwards calls to the OS’s Unified Logging system

Note

@unchecked Sendable to satisfy the Sendable requirement on Plugin. registeredLogs is guarded, but inconsistently — concurrencyQueue on the caching and reset paths, lock in enable()/disable() — and enabled is not guarded at all. That predates the Swift 6 migration and is left as-is here rather than changed blind: enabled is read from inside lock.execute, so backing it with the same non-recursive lock would deadlock. Worth untangling separately.
  • key

    Convenience property. Each instance of AWSUnifiedLoggingPlugin has the same key

    Declaration

    Swift

    public static var key: String { get }
  • Initializes the logging system with a default log, and immediately registers a default logger

    Declaration

    Swift

    public init()

LoggingCategoryPlugin