SFAnalyticsLogger.h [plain text]
#import <Foundation/Foundation.h>
#if __OBJC2__
@interface SFAnalyticsLogger : NSObject <NSURLSessionDelegate>
+ (instancetype)logger;
+ (NSInteger)fuzzyDaysSinceDate:(NSDate*)date;
- (void)logSuccessForEventNamed:(NSString*)eventName;
- (void)logHardFailureForEventNamed:(NSString*)eventName withAttributes:(NSDictionary*)attributes;
- (void)logSoftFailureForEventNamed:(NSString*)eventName withAttributes:(NSDictionary*)attributes;
- (void)noteEventNamed:(NSString*)eventName;
@property (readonly, class) NSString* databasePath;
- (void)setDateProperty:(NSDate*)date forKey:(NSString*)key;
- (NSDate*)datePropertyForKey:(NSString*)key;
- (NSDictionary*)extraValuesToUploadToServer;
- (NSString*)sysdiagnoseStringForEventRecord:(NSDictionary*)eventRecord;
- (NSString*)getSysdiagnoseDumpWithError:(NSError**)error;
- (NSData*)getLoggingJSONWithError:(NSError**)error;
- (BOOL)forceUploadWithError:(NSError**)error;
@property (readonly) dispatch_queue_t splunkLoggingQueue;
@property (readonly) NSURL* splunkUploadURL;
@property (readonly) NSString* splunkTopicName;
@property (readonly) NSURL* splunkBagURL;
@property (readonly) BOOL allowsInsecureSplunkCert;
@property BOOL ignoreServerDisablingMessages;
@end
#endif