Skip to content

Commit

Permalink
Added clearCrashLogs method
Browse files Browse the repository at this point in the history
  • Loading branch information
erkanyildiz committed Apr 9, 2021
1 parent 083578f commit fda8f86
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Countly.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,13 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)recordCrashLog:(NSString *)log;

/**
* Clears all custom crash logs.
* @discussion Custom crash logs recorded using @c recordCrashLog: method so far will be cleared.
*/
- (void)clearCrashLogs;


/**
* @c crashLog: method is deprecated. Please use @c recordCrashLog: method instead.
* @discussion Be advised, parameter type changed to plain @c NSString from string format, for better Swift compatibility.
Expand Down
5 changes: 5 additions & 0 deletions Countly.m
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,11 @@ - (void)recordCrashLog:(NSString *)log
[CountlyCrashReporter.sharedInstance log:log];
}

- (void)clearCrashLogs
{
[CountlyCrashReporter.sharedInstance clearCrashLogs];
}

- (void)crashLog:(NSString *)format, ...
{

Expand Down

0 comments on commit fda8f86

Please sign in to comment.