88
99#import " CSJSBridgeActionHandlerManager.h"
1010#import " CSJSHandler.h"
11+ #import " CSJSLog.h"
1112
1213@interface CSJSBridgeActionHandlerManager ()
1314
@@ -57,7 +58,7 @@ + (instancetype)shareManager
5758 id handler = [[handlerClass alloc ] init ];
5859 if (!handler)
5960 {
60- NSLog (@" << handlerClass not exist:%@ >> " ,handlerClassString);
61+ CSLog (@" handlerClass not exist:%@ " ,handlerClassString);
6162 }
6263 else {
6364 if ([handler conformsToProtocol: @protocol (CSJSHandlerProtocol)]) {
@@ -66,11 +67,11 @@ + (instancetype)shareManager
6667 CSJSHandler *jsHandler = (CSJSHandler *)handler;
6768 jsHandler.handlerName = handlerName;
6869 }else {
69- NSLog (@" << handler:%@ not conform to protocol:%@ >> " ,handler, NSStringFromProtocol (@protocol (CSJSHandlerProtocol)));
70+ CSLog (@" handler:%@ not conform to protocol:%@ " ,handler, NSStringFromProtocol (@protocol (CSJSHandlerProtocol)));
7071 }
7172 }
7273 }];
73- NSLog (@" << supportJsHandlerMap:%@ >> " ,_supportJSHandlersMap);
74+ CSLog (@" supportJsHandlerMap:%@ " ,_supportJSHandlersMap);
7475 }
7576 return _supportJSHandlersMap;
7677}
@@ -89,7 +90,7 @@ - (void)callHandler:(NSString *)handlerName
8990{
9091 id <CSJSHandlerProtocol>handler = self.supportJSHandlersMap [handlerName];
9192 if (!handler) {
92- NSLog (@" << error,handler:%@ not register >> " ,handlerName);
93+ CSLog (@" error,handler:%@ not register" ,handlerName);
9394 }
9495 else
9596 {
@@ -99,7 +100,7 @@ - (void)callHandler:(NSString *)handlerName
99100 }
100101 else
101102 {
102- NSLog (@" << error,handler not respondsToSelector 'callAppActionWithMessage: '>> " );
103+ NSLog (@" error,handler not respondsToSelector 'callAppActionWithMessage: '" );
103104 }
104105 }
105106}
0 commit comments