MillicastSDK 2.0.0
Loading...
Searching...
No Matches
mc_logging.h
Go to the documentation of this file.
1#import <Foundation/Foundation.h>
2#import <MillicastSDK/exports.h>
3
5typedef NS_CLOSED_ENUM(NSInteger, MCLogLevel)
6{
8 MCLogLevelOff,
10 MCLogLevelError,
12 MCLogLevelWarning,
14 MCLogLevelLog,
16 MCLogLevelDebug,
18 MCLogLevelVerbose
19};
20
22MILLICAST_API @protocol MCLoggerDelegate <NSObject>
23
28- (void)onLogWithMessage:(NSString* _Nonnull)message Level:(MCLogLevel)level;
29
30@end
31
33MILLICAST_API @interface MCLogger : NSObject
34
38+ (void) setDelegate:(id<MCLoggerDelegate> _Nonnull) delegate;
39
45+ (void)setLogLevelWithSdk:(MCLogLevel)sdkLogLevel
46 Webrtc:(MCLogLevel)webrtcLogLevel
47 Websocket:(MCLogLevel)websocketLogLevel;
48
51+ (nonnull NSString*) getVersion;
52
55+ (nonnull NSString*) getWebrtcVersion;
56@end
#define MILLICAST_API
Definition exports.h:51
Class that is responsible for managing SDK logs.
Definition mc_logging.h:34
nonnull NSString * getWebrtcVersion()
nonnull NSString * getVersion()
typedef NS_CLOSED_ENUM(NSInteger, MCLogLevel)
The log message's level.
Definition mc_logging.h:5