theapache64 / rebugger

A simple Compose Multiplatform library designed to print the reason for recomposition in your console/Logcat window."
Apache License 2.0
919 stars 7 forks source link

Add option to pass a custom logger to Rebugger #6

Closed alorma closed 1 year ago

alorma commented 1 year ago

This PR adds the option on Rebugger call to use a different logger method.

By default it keeps using the Log with "Rebugger" tag, but allows usage of this library to supply their own logger method

    Rebugger(
        trackMap = mapOf(
            "car" to car,
            "bike" to bike,
        ),
        logger = { message ->
            Timber.tag("AppTag").d(message)
        },
    )

Closes #5