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
  • enable plugin

    Declaration

    Swift

    func enable()
  • disable plugin

    Declaration

    Swift

    func disable()
  • adding namespace to match Android implementation

    Declaration

    Swift

    func logger(forNamespace namespace: String) -> Logger
  • new api to support category and namespace

    Declaration

    Swift

    func logger(forCategory category: String, forNamespace namespace: String) -> Logger