12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #import <Foundation/Foundation.h>
- #import <BioAuthEngine/APBConfig.h>
- extern NSString *const kDebugNotiName;
- #define __FILE_NAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
- #ifdef DEBUG
- #define BIOAUTH_LOG(fmt, ...) \
- { \
- NSLog(@"[BIOAUTH]: %@, function:%s, file:%s, line:%d, date:%s, time:%s",\
- [NSString stringWithFormat:fmt, ##__VA_ARGS__], __PRETTY_FUNCTION__, __FILE_NAME__, __LINE__, __DATE__, __TIME__);\
- }
- #define LOG_DBG(fmt, ...) BIOAUTH_LOG(fmt, ##__VA_ARGS__);
- #define LOG_INFO(fmt, ...) BIOAUTH_LOG(fmt, ##__VA_ARGS__);
- #define LOG_ERROR(fmt, ...) BIOAUTH_LOG(fmt, ##__VA_ARGS__);
- #else
- #define LOG_DBG(fmt, ...)
- #define LOG_INFO(fmt, ...)
- #define LOG_ERROR(fmt, ...)
- #endif
|