// // Copyright (c) 2020 Open Whisper Systems. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN @interface DebugLogger : NSObject + (instancetype)sharedLogger; - (void)enableFileLogging; - (void)disableFileLogging; - (void)enableTTYLogging; - (void)enableErrorReporting; @property (nonatomic, readonly) NSURL *errorLogsDir; - (void)wipeLogs; - (NSArray *)allLogFilePaths; @property (nonatomic, readonly, class) NSString *mainAppDebugLogsDirPath; @property (nonatomic, readonly, class) NSString *shareExtensionDebugLogsDirPath; @property (nonatomic, readonly, class) NSString *nseDebugLogsDirPath; #ifdef TESTABLE_BUILD @property (nonatomic, readonly, class) NSString *testDebugLogsDirPath; #endif @end #pragma mark - @interface ErrorLogger : DDFileLogger + (void)playAlertSound; @end NS_ASSUME_NONNULL_END