diff options
author | m-stephen <truestyle2005@163.com> | 2019-07-25 15:39:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-25 15:39:01 +0800 |
commit | 2e5897c0f49120c72b7431b3af7d41bef3414719 (patch) | |
tree | 9b08bab9c802813f390826d1ae0ecb90c88667d2 /platform/darwin/src/MGLLoggingConfiguration_Private.h | |
parent | a8db681454e5173c03154e79c5f125ce26d653c1 (diff) | |
download | qtlocation-mapboxgl-2e5897c0f49120c72b7431b3af7d41bef3414719.tar.gz |
[ios, macos]MGLLoggingConfiguration can filter logs from core (#15120)
* [ios, macos] update proj config
* [ios, macos] implement the logging logic
* [ios, macos] update comments
* [ios, macos] update mac os config
* [ios, macos] re-generate sdk files
* [ios, macos] re-generate sdk files json
* [ios, macos]re-generate json files
* [ios, macos] re-generate ios json files
* [ios] change conditions to bit mask
* [ios, macos]send messages to platform
* [ios, macos] add changelogs
* [ios, macos] revert `logging_nslog`
* [ios, macos] add event name and code into log msg
* [ios, macos] update changlog
* [ios, macos] fix a nit
* [ios, macos]Fix nits.
Diffstat (limited to 'platform/darwin/src/MGLLoggingConfiguration_Private.h')
-rw-r--r-- | platform/darwin/src/MGLLoggingConfiguration_Private.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLLoggingConfiguration_Private.h b/platform/darwin/src/MGLLoggingConfiguration_Private.h index 3acc0291c0..40b4df440d 100644 --- a/platform/darwin/src/MGLLoggingConfiguration_Private.h +++ b/platform/darwin/src/MGLLoggingConfiguration_Private.h @@ -14,6 +14,7 @@ NS_INLINE NSString *MGLStringFromNSEdgeInsets(NSEdgeInsets insets) { #define MGLLogInfo(...) #define MGLLogDebug(...) +#define MGLLogWarning(...) #define MGLLogError(...) #define MGLLogFault(...) @@ -25,9 +26,10 @@ NS_INLINE NSString *MGLStringFromNSEdgeInsets(NSEdgeInsets insets) { #define MGLLogDebug(...) #endif -#define MGLLogInfo(message, ...) MGLLogWithType(MGLLoggingLevelInfo, __PRETTY_FUNCTION__, __LINE__, message, ##__VA_ARGS__) -#define MGLLogError(message, ...) MGLLogWithType(MGLLoggingLevelError, __PRETTY_FUNCTION__, __LINE__, message, ##__VA_ARGS__) -#define MGLLogFault(message, ...) MGLLogWithType(MGLLoggingLevelFault, __PRETTY_FUNCTION__, __LINE__, message, ##__VA_ARGS__) +#define MGLLogInfo(message, ...) MGLLogWithType(MGLLoggingLevelInfo, __PRETTY_FUNCTION__, __LINE__, message, ##__VA_ARGS__) +#define MGLLogWarning(message, ...) MGLLogWithType(MGLLoggingLevelWarning, __PRETTY_FUNCTION__, __LINE__, message, ##__VA_ARGS__) +#define MGLLogError(message, ...) MGLLogWithType(MGLLoggingLevelError, __PRETTY_FUNCTION__, __LINE__, message, ##__VA_ARGS__) +#define MGLLogFault(message, ...) MGLLogWithType(MGLLoggingLevelFault, __PRETTY_FUNCTION__, __LINE__, message, ##__VA_ARGS__) #endif |