-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After adding Instabug.init API that takes an extensible InstabugConfig, this PR does the following: 1. Adds debugLogsLevel optional property to InstabugConfig, and a new enum LogLevel which controls the verbosity of SDK logs. This works on both platforms. 2. Deprecates the old debug logs APIs and enums.
- Loading branch information
1 parent
e4b8c7a
commit c1807cb
Showing
13 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
import type { invocationEvent } from '../utils/ArgsRegistry'; | ||
import type { LogLevel } from '../utils/Enums'; | ||
|
||
export interface InstabugConfig { | ||
/** | ||
* The token that identifies the app. You can find it on your dashboard. | ||
*/ | ||
token: string; | ||
/** | ||
* An array of events that invoke the SDK's UI. | ||
*/ | ||
invocationEvents: invocationEvent[]; | ||
/** | ||
* An optional LogLevel to indicate the verbosity of SDK logs. Default is Error. | ||
*/ | ||
debugLogsLevel?: LogLevel; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { NativeInstabug } from '../native'; | ||
|
||
export enum LogLevel { | ||
Verbose = NativeInstabug.sdkDebugLogsLevelVerbose, | ||
Debug = NativeInstabug.sdkDebugLogsLevelDebug, | ||
Error = NativeInstabug.sdkDebugLogsLevelError, | ||
None = NativeInstabug.sdkDebugLogsLevelNone, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters