aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Core/Private
diff options
context:
space:
mode:
authorGravatar Ryan Wilson <wilsonryan@google.com>2018-04-25 09:45:36 -0400
committerGravatar Paul Beusterien <paulbeusterien@google.com>2018-04-25 06:45:36 -0700
commit260557691fae8ba34e262f480c632ab63b5133ee (patch)
tree7591bc9023e9c42e8a348758171a4fa41ed0cf19 /Firebase/Core/Private
parent98d665b7927da3c30f86919ca810f9f6fa6a354e (diff)
Add counter for errors and warnings logged. (#1168)
* Moved writes outside of dispatch_async block.
Diffstat (limited to 'Firebase/Core/Private')
-rw-r--r--Firebase/Core/Private/FIRLogger.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/Firebase/Core/Private/FIRLogger.h b/Firebase/Core/Private/FIRLogger.h
index 358832f..e095e4e 100644
--- a/Firebase/Core/Private/FIRLogger.h
+++ b/Firebase/Core/Private/FIRLogger.h
@@ -42,6 +42,16 @@ extern FIRLoggerService kFIRLoggerRemoteConfig;
extern FIRLoggerService kFIRLoggerStorage;
extern FIRLoggerService kFIRLoggerSwizzler;
+/**
+ * The key used to store the logger's error count.
+ */
+extern NSString *const kFIRLoggerErrorCountKey;
+
+/**
+ * The key used to store the logger's warning count.
+ */
+extern NSString *const kFIRLoggerWarningCountKey;
+
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
@@ -62,6 +72,21 @@ void FIRSetAnalyticsDebugMode(BOOL analyticsDebugMode);
void FIRSetLoggerLevel(FIRLoggerLevel loggerLevel);
/**
+ * Retrieve the number of errors that have been logged since the stat was last reset.
+ */
+NSInteger FIRNumberOfErrorsLogged(void);
+
+/**
+ * Retrieve the number of warnings that have been logged since the stat was last reset.
+ */
+NSInteger FIRNumberOfWarningsLogged(void);
+
+/**
+ * Reset number of errors and warnings that have been logged to 0.
+ */
+void FIRResetNumberOfIssuesLogged(void);
+
+/**
* Checks if the specified logger level is loggable given the current settings.
* (required) log level (one of the FIRLoggerLevel enum values).
* (required) whether or not this function is called from the Analytics component.