This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-iOS/Pod/Classes/DoricMonitorProtocol.h

28 lines
715 B
C
Raw Normal View History

2020-01-11 11:01:38 +08:00
//
// Created by pengfei.zhou on 2020/1/10.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, DoricLogType) {
DoricLogTypeDebug = 0,
DoricLogTypeWarning = 1,
DoricLogTypeError = 2,
};
@class DoricContext;
2020-01-11 11:01:38 +08:00
@protocol DoricMonitorProtocol <NSObject>
/**
* Called when native or js exception occurred in doric
*
* @param exception exception which is thrown within doric sdk
* @param context Which Context
*/
- (void)onException:(NSException *)exception inContext:(DoricContext *)context;
2020-01-11 11:01:38 +08:00
/**
* @param type The priority/type of this log message.
* @param message The message you would like logged.
*/
2020-01-11 11:01:38 +08:00
- (void)onLog:(DoricLogType)type message:(NSString *)message;
@end