File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
284284Also, you can completely redefine the logging behaviors by setting your custom logger like the example below:
You can’t perform that action at this time.
0 commit comments