summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLLoggingConfiguration.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/MGLLoggingConfiguration.h')
-rw-r--r--platform/darwin/src/MGLLoggingConfiguration.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLLoggingConfiguration.h b/platform/darwin/src/MGLLoggingConfiguration.h
index b467f80d31..6782dc60a7 100644
--- a/platform/darwin/src/MGLLoggingConfiguration.h
+++ b/platform/darwin/src/MGLLoggingConfiguration.h
@@ -2,6 +2,13 @@
#import "MGLFoundation.h"
+#ifndef MGL_LOGGING_DISABLED
+ #ifndef MGL_LOGGING_ENABLE_DEBUG
+ #ifdef DEBUG
+ #define MGL_LOGGING_ENABLE_DEBUG 1
+ #endif
+ #endif
+
NS_ASSUME_NONNULL_BEGIN
/**
@@ -17,11 +24,13 @@ typedef NS_ENUM(NSInteger, MGLLoggingLevel) {
but is not essential.
*/
MGLLoggingLevelInfo,
+#if MGL_LOGGING_ENABLE_DEBUG
/**
Debug-level messages contain information that may be helpful for troubleshooting
specific problems.
*/
MGLLoggingLevelDebug,
+#endif
/**
Error-level messages contain information that is intended to aid in process-level
errors.
@@ -82,3 +91,4 @@ MGL_EXPORT
@end
NS_ASSUME_NONNULL_END
+#endif