Signal-iOS/SignalMessaging/utils/DebugLogger.h
Michelle Linington 488259d5ef Lint
2022-04-14 16:25:33 -07:00

47 lines
902 B
Objective-C

//
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
//
#import <CocoaLumberjack/DDFileLogger.h>
NS_ASSUME_NONNULL_BEGIN
@interface DebugLogger : NSObject
+ (instancetype)shared;
- (void)enableFileLogging;
- (void)disableFileLogging;
- (void)enableTTYLogging;
- (void)enableErrorReporting;
@property (nonatomic, readonly) NSURL *errorLogsDir;
- (void)wipeLogs;
- (void)postLaunchLogCleanup;
- (NSArray<NSString *> *)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