FIRConfiguration

@interface FIRConfiguration : NSObject

This interface provides global level properties that the developer can tweak, and the singleton of the Firebase Analytics configuration class.

  • Returns the shared configuration object.

    Declaration

    Swift

    class func sharedInstance() -> FIRConfiguration!

    Objective-C

    + (FIRConfiguration *)sharedInstance;
  • The configuration class for Firebase Analytics.

    Declaration

    Swift

    var analyticsConfiguration: FIRAnalyticsConfiguration! { get set }

    Objective-C

    @property (assign, readwrite, nonatomic)
        FIRAnalyticsConfiguration *analyticsConfiguration;
  • Global log level. Defaults to kFIRLogLevelError.

    Declaration

    Swift

    var logLevel: FIRLogLevel { get set }

    Objective-C

    @property (assign, readwrite, nonatomic) FIRLogLevel logLevel;
  • Sets the logging level for internal Firebase logging. Firebase will only log messages that are logged at or below loggerLevel. The messages are logged both to the Xcode console and to the device’s log. Note that if an app is running from AppStore, it will never log above FIRLoggerLevelNotice even if loggerLevel is set to a higher (more verbose) setting.

    Declaration

    Swift

    func setLoggerLevel(_ loggerLevel: FIRLoggerLevel)

    Objective-C

    - (void)setLoggerLevel:(FIRLoggerLevel)loggerLevel;

    Parameters

    loggerLevel

    The maximum logging level. The default level is set to FIRLoggerLevelNotice.