Skip to content

Commit

Permalink
Merge pull request #1299 from OneSignal/user_model/web_view_inspectab…
Browse files Browse the repository at this point in the history
…ility

[User model] Web view inspectability
  • Loading branch information
emawby authored and nan-li committed Oct 30, 2023
2 parents 683bf14 + c8edfea commit d0431b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
@interface OneSignalLog : NSObject<OSDebug>
+ (Class<OSDebug>)Debug;
+ (void)onesignalLog:(ONE_S_LOG_LEVEL)logLevel message:(NSString* _Nonnull)message;
+ (ONE_S_LOG_LEVEL)getLogLevel;
@end
4 changes: 4 additions & 0 deletions iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalLog.m
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d0431b0

Please sign in to comment.