Skip to content

Commit 668e8ee

Browse files
chore: document log threshold configuration (#872)
Co-authored-by: Richard McClellan <[email protected]>
1 parent 3cd3ff7 commit 668e8ee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,17 @@ output to a file, and grep through it.
461461
./gradlew --debug 2>&1 > debugging-the-build.log
462462
```
463463

464+
### Getting More Output
465+
466+
The Amplify Android library emits logs while it is running on a device
467+
or emulator. By default, debug and verbose logs are not output.
468+
However, you can change the log threshold at runtime, by explicitly
469+
configuring a logging plugin:
470+
```kotlin
471+
Amplify.addPlugin(AndroidLoggingPlugin(LogLevel.VERBOSE))
472+
// ... Add more plugins only *after* setting the log plugin.
473+
```
474+
464475
### Failing Instrumentation Tests
465476

466477
If a single test is failing, run only that test, to isolate it. You may also

0 commit comments

Comments
 (0)