/
SDLDebugTool.h
48 lines (35 loc) 路 1.45 KB
/
SDLDebugTool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// SDLDebugTool.h
//
#import "SDLDebugToolConsole.h"
#import <Foundation/Foundation.h>
@class SDLRPCMessage;
typedef NS_ENUM(UInt8, SDLDebugType) {
SDLDebugType_Debug = 0,
SDLDebugType_Transport_iAP = 1,
SDLDebugType_Transport_TCP = 2,
SDLDebugType_Protocol = 3,
SDLDebugType_RPC = 4,
SDLDebugType_APP = 5
};
typedef NS_ENUM(UInt8, SDLDebugOutput) {
SDLDebugOutput_All = 0xFF,
SDLDebugOutput_DeviceConsole = 1,
SDLDebugOutput_DebugToolConsole = 2,
SDLDebugOutput_File = 4
};
@interface SDLDebugTool : NSObject {
}
+ (void)addConsole:(NSObject<SDLDebugToolConsole> *)console;
+ (void)addConsole:(NSObject<SDLDebugToolConsole> *)console toGroup:(NSString *)groupName;
+ (void)removeConsole:(NSObject<SDLDebugToolConsole> *)console;
+ (void)removeConsole:(NSObject<SDLDebugToolConsole> *)console fromGroup:(NSString *)groupName;
+ (void)logInfo:(NSString *)info;
+ (void)logInfo:(NSString *)info withType:(SDLDebugType)type;
+ (void)logInfo:(NSString *)info withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output;
+ (void)logInfo:(NSString *)info andBinaryData:(NSData *)data withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output;
+ (void)logInfo:(NSString *)info withType:(SDLDebugType)type toOutput:(SDLDebugOutput)output toGroup:(NSString *)consoleGroupName;
+ (void)enableDebugToLogFile;
+ (void)disableDebugToLogFile;
+ (void)writeToLogFile:(NSString *)info;
+ (NSString *)stringForDebugType:(SDLDebugType)type;
@end