Browse Source

IOS-2456 Logger macros

IOS-2456
Dirk Zimmermann 2 years ago
parent
commit
596285d42c
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      pEpObjCAdapter/Logger.h

+ 16
- 0
pEpObjCAdapter/Logger.h View File

@ -11,4 +11,20 @@
#import <pEpIOSToolbox/pEpIOSToolbox-Swift.h>
#define LogInfo(...) [[Log shared] \
logInfoWithMessage:[NSString stringWithFormat:__VA_ARGS__] \
function:[NSString stringWithUTF8String:__FUNCTION__] \
filePath:[NSString stringWithUTF8String:__FILE__] \
fileLine:__LINE__];
#define LogWarn(...) [[Log shared] \
logWarnWithMessage:[NSString stringWithFormat:__VA_ARGS__] \
function:[NSString stringWithUTF8String:__FUNCTION__] \
filePath:[NSString stringWithUTF8String:__FILE__] \
fileLine:__LINE__];
#define LogError(...) [[Log shared] \
logErrorWithMessage:[NSString stringWithFormat:__VA_ARGS__] \
function:[NSString stringWithUTF8String:__FUNCTION__] \
filePath:[NSString stringWithUTF8String:__FILE__] \
fileLine:__LINE__];
#endif /* Logger_h */

Loading…
Cancel
Save