diff --git a/iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalLog.h b/iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalLog.h index 2a5da9b11..d5e72bcbe 100644 --- a/iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalLog.h +++ b/iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalLog.h @@ -44,4 +44,5 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) { @interface OneSignalLog : NSObject + (Class)Debug; + (void)onesignalLog:(ONE_S_LOG_LEVEL)logLevel message:(NSString* _Nonnull)message; ++ (ONE_S_LOG_LEVEL)getLogLevel; @end diff --git a/iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalLog.m b/iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalLog.m index ec830df0c..0a840128b 100644 --- a/iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalLog.m +++ b/iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalLog.m @@ -50,6 +50,10 @@ + (void)onesignalLog:(ONE_S_LOG_LEVEL)logLevel message:(NSString* _Nonnull)messa onesignal_Log(logLevel, message); } ++ (ONE_S_LOG_LEVEL)getLogLevel { + return _nsLogLevel; +} + void onesignal_Log(ONE_S_LOG_LEVEL logLevel, NSString* message) { NSString* levelString; switch (logLevel) {