Skip to content

Commit 0e46719

Browse files
authored
Documentation for setLogLevel() (#698)
1 parent b69fe05 commit 0e46719

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/sdks/client-sdks/javascript/troubleshooting.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ sidebar_position: 120
55

66
## Debugging
77

8+
By default the log level for the SDK is set to `warn`.
9+
You can change this by calling the `setLogLevel` option on the SDK.
10+
```ts
11+
eppoClient.setLogLevel('debug');
12+
```
13+
814
You may encounter a situation where a flag assignment produces a value that you did not expect. There are functions [detailed here](/sdks/sdk-features/debugging-flag-assignment) to help you understand how flags are assigned, which will allow you to take corrective action on potential configuration issues.
915

1016
## Supporting old browsers

0 commit comments

Comments
 (0)