LoggingCategoryClientBehavior

public protocol LoggingCategoryClientBehavior
  • A reference to the default logger accessed by method calls directly to Amplify.Logging, as in Amplify.Logging.debug("message"). Default loggers must use the Logging category’s logLevel.

    Declaration

    Swift

    var `default`: Logger { get }
  • Returns a category-specific logger at the specified level.

    Declaration

    Swift

    func logger(forCategory category: String, logLevel: LogLevel) -> Logger
  • Returns a category-specific logger. Defaults to using Amplify.Logging.logLevel.

    Declaration

    Swift

    func logger(forCategory category: String) -> Logger