summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLLoggingConfiguration.h
diff options
context:
space:
mode:
authorm-stephen <truestyle2005@163.com>2019-07-25 15:39:01 +0800
committerGitHub <noreply@github.com>2019-07-25 15:39:01 +0800
commit2e5897c0f49120c72b7431b3af7d41bef3414719 (patch)
tree9b08bab9c802813f390826d1ae0ecb90c88667d2 /platform/darwin/src/MGLLoggingConfiguration.h
parenta8db681454e5173c03154e79c5f125ce26d653c1 (diff)
downloadqtlocation-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.h')
-rw-r--r--platform/darwin/src/MGLLoggingConfiguration.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/platform/darwin/src/MGLLoggingConfiguration.h b/platform/darwin/src/MGLLoggingConfiguration.h
index d79336df4c..2445078584 100644
--- a/platform/darwin/src/MGLLoggingConfiguration.h
+++ b/platform/darwin/src/MGLLoggingConfiguration.h
@@ -16,33 +16,38 @@ NS_ASSUME_NONNULL_BEGIN
*/
typedef NS_ENUM(NSInteger, MGLLoggingLevel) {
/**
- None-level messages are ignored.
+ None-level won't print any messages.
*/
MGLLoggingLevelNone = 0,
/**
+ Fault-level messages contain system-level error information.
+ */
+ MGLLoggingLevelFault,
+ /**
+ Error-level messages contain information that is intended to aid in process-level
+ errors.
+ */
+ MGLLoggingLevelError,
+ /**
+ Warning-level messages contain warning information for potential risks.
+ */
+ MGLLoggingLevelWarning,
+ /**
Info-level messages contain information that may be helpful for flow tracing
but is not essential.
*/
MGLLoggingLevelInfo,
-#if MGL_LOGGING_ENABLE_DEBUG
/**
Debug-level messages contain information that may be helpful for troubleshooting
specific problems.
*/
+#if MGL_LOGGING_ENABLE_DEBUG
MGLLoggingLevelDebug,
#endif
/**
- Error-level messages contain information that is intended to aid in process-level
- errors.
- */
- MGLLoggingLevelError,
- /**
- Fault-level messages contain system-level error information.
- */
- MGLLoggingLevelFault,
- /**
- :nodoc: Any new logging level should be included in the default logging implementation.
+ Verbose-level will print all messages.
*/
+ MGLLoggingLevelVerbose,
};
/**