You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
956 B

  1. //
  2. // FLEXOSLogController.h
  3. // FLEX
  4. //
  5. // Created by Tanner on 12/19/18.
  6. // Copyright © 2018 Flipboard. All rights reserved.
  7. //
  8. #import "FLEXLogController.h"
  9. #define FLEXOSLogAvailable() ([NSProcessInfo processInfo].operatingSystemVersion.majorVersion >= 10)
  10. extern NSString * const kFLEXiOSPersistentOSLogKey;
  11. /// The log controller used for iOS 10 and up.
  12. @interface FLEXOSLogController : NSObject <FLEXLogController>
  13. + (instancetype)withUpdateHandler:(void(^)(NSArray<FLEXSystemLogMessage *> *newMessages))newMessagesHandler;
  14. - (BOOL)startMonitoring;
  15. /// Whether log messages are to be recorded and kept in-memory in the background.
  16. /// You do not need to initialize this value, only change it.
  17. @property (nonatomic) BOOL persistent;
  18. /// Used mostly internally, but also used by the log VC to persist messages
  19. /// that were created prior to enabling persistence.
  20. @property (nonatomic) NSMutableArray<FLEXSystemLogMessage *> *messages;
  21. @end