Add 'server/' from commit '800090542d91beae40bc81fc41b67ba61c47da77'
git-subtree-dir: server git-subtree-mainline:6a4054c15agit-subtree-split:800090542d
This commit is contained in:
34
server/kordophone/Utilities/MBIMLogging.h
Normal file
34
server/kordophone/Utilities/MBIMLogging.h
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// MBIMLogging.h
|
||||
// kordophoned
|
||||
//
|
||||
// Created by James Magahern on 1/22/19.
|
||||
// Copyright © 2019 James Magahern. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef enum {
|
||||
ML_INFO,
|
||||
ML_NOTIFY,
|
||||
ML_ERROR,
|
||||
ML_FATAL
|
||||
} MBIMLogLevel;
|
||||
|
||||
extern void __MBIMLogCommon(MBIMLogLevel level, NSString *format, ...);
|
||||
|
||||
#define MBIMLogInfo(format, ...) \
|
||||
__MBIMLogCommon(ML_INFO, format, ##__VA_ARGS__)
|
||||
|
||||
#define MBIMLogNotify(format, ...) \
|
||||
__MBIMLogCommon(ML_NOTIFY, format, ##__VA_ARGS__)
|
||||
|
||||
#define MBIMLogError(format, ...) \
|
||||
__MBIMLogCommon(ML_ERROR, format, ##__VA_ARGS__)
|
||||
|
||||
#define MBIMLogFatal(format, ...) \
|
||||
__MBIMLogCommon(ML_FATAL, format, ##__VA_ARGS__)
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user