//
//  RYLog.h
//  SDK
//
//  Created by ldc on 2024/5/11.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface RYLog : NSObject

@property (nonatomic, assign) BOOL enable;

@property (nonatomic, copy) void(^ _Nullable writeBlock)(NSString *);

- (void)writeWithGenerator:(NSString *(^)(void))logGenerator;

- (void)write:(NSString *)log;

+ (instancetype)default;

- (NSString *)dataLogDescription:(NSData *)data;;

@end

NS_ASSUME_NONNULL_END
