FIRConfiguration.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #import <Foundation/Foundation.h>
  2. #import "FIRAnalyticsConfiguration.h"
  3. #import "FIRLoggerLevel.h"
  4. /**
  5. * The log levels used by FIRConfiguration.
  6. */
  7. typedef NS_ENUM(NSInteger, FIRLogLevel) {
  8. /** Error */
  9. kFIRLogLevelError __deprecated = 0,
  10. /** Warning */
  11. kFIRLogLevelWarning __deprecated,
  12. /** Info */
  13. kFIRLogLevelInfo __deprecated,
  14. /** Debug */
  15. kFIRLogLevelDebug __deprecated,
  16. /** Assert */
  17. kFIRLogLevelAssert __deprecated,
  18. /** Max */
  19. kFIRLogLevelMax __deprecated = kFIRLogLevelAssert
  20. } DEPRECATED_MSG_ATTRIBUTE(
  21. "Use -FIRDebugEnabled and -FIRDebugDisabled or setLoggerLevel. See FIRApp.h for more details.");
  22. /**
  23. * This interface provides global level properties that the developer can tweak, and the singleton
  24. * of the Firebase Analytics configuration class.
  25. */
  26. @interface FIRConfiguration : NSObject
  27. /** Returns the shared configuration object. */
  28. + (FIRConfiguration *)sharedInstance;
  29. /** The configuration class for Firebase Analytics. */
  30. @property(nonatomic, readwrite) FIRAnalyticsConfiguration *analyticsConfiguration;
  31. /** Global log level. Defaults to kFIRLogLevelError. */
  32. @property(nonatomic, readwrite, assign) FIRLogLevel logLevel DEPRECATED_MSG_ATTRIBUTE(
  33. "Use -FIRDebugEnabled and -FIRDebugDisabled or setLoggerLevel. See FIRApp.h for more details.");
  34. /**
  35. * Sets the logging level for internal Firebase logging. Firebase will only log messages
  36. * that are logged at or below loggerLevel. The messages are logged both to the Xcode
  37. * console and to the device's log. Note that if an app is running from AppStore, it will
  38. * never log above FIRLoggerLevelNotice even if loggerLevel is set to a higher (more verbose)
  39. * setting.
  40. *
  41. * @param loggerLevel The maximum logging level. The default level is set to FIRLoggerLevelNotice.
  42. */
  43. - (void)setLoggerLevel:(FIRLoggerLevel)loggerLevel;
  44. @end