1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #import <Foundation/Foundation.h>
- #import "RTCMacros.h"
- typedef NS_ENUM(NSUInteger, RTCFileLoggerSeverity) {
- RTCFileLoggerSeverityVerbose,
- RTCFileLoggerSeverityInfo,
- RTCFileLoggerSeverityWarning,
- RTCFileLoggerSeverityError
- };
- typedef NS_ENUM(NSUInteger, RTCFileLoggerRotationType) {
- RTCFileLoggerTypeCall,
- RTCFileLoggerTypeApp,
- };
- NS_ASSUME_NONNULL_BEGIN
- RTC_OBJC_EXPORT
- @interface RTC_OBJC_TYPE (RTCFileLogger) : NSObject
- @property(nonatomic, assign) RTCFileLoggerSeverity severity;
- @property(nonatomic, readonly) RTCFileLoggerRotationType rotationType;
- @property(nonatomic, assign) BOOL shouldDisableBuffering;
- - (instancetype)init;
- - (instancetype)initWithDirPath:(NSString *)dirPath maxFileSize:(NSUInteger)maxFileSize;
- - (instancetype)initWithDirPath:(NSString *)dirPath
- maxFileSize:(NSUInteger)maxFileSize
- rotationType:(RTCFileLoggerRotationType)rotationType NS_DESIGNATED_INITIALIZER;
- - (void)start;
- - (void)stop;
- - (nullable NSData *)logData;
- @end
- NS_ASSUME_NONNULL_END
|