Skip to content

Commit 00aeb7e

Browse files
authored
Merge pull request #7 from easyhooon/main
Update README with Configure Custom Logger & Enable Logging
2 parents e5ea4d8 + 097f3d6 commit 00aeb7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,15 @@ class MyApp : Application() {
270270
super.onCreate()
271271

272272
// Enable recomposition tracking ONLY in debug builds
273-
LoggerProvider.setEnabled(BuildConfig.DEBUG)
273+
ComposeStabilityAnalyzer.setEnabled(BuildConfig.DEBUG)
274274
}
275275
}
276276
```
277277

278278
**Important Note**
279279

280280
- Always wrap with `BuildConfig.DEBUG` to avoid performance overhead in production or filter them clearly on the custom logger.
281-
- If you don't enable `LoggerProvider`, no logs will appear even with `@TraceRecomposition`.
281+
- If you don't enable `ComposeStabilityAnalyzer`, no logs will appear even with `@TraceRecomposition`.
282282
- This logging has minimal performance impact in debug builds but should still be disabled in release builds for any security reasons of your app.
283283

284284
Also, you can completely redefine the logging behaviors by setting your custom logger like the example below:

0 commit comments

Comments
 (0)