We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I never saw a configuration to enable logging, so that developers can more easily monitor sdk activity.
The text was updated successfully, but these errors were encountered:
I successfully enabled this feature by executing the following code snippet:
val rustTracingConfiguration = org.matrix.rustcomponents.sdk.TracingConfiguration( writeToStdoutOrSystem = BuildConfig.DEBUG, logLevel = org.matrix.rustcomponents.sdk.LogLevel.DEBUG, extraTargets = listOf("PackageName"), writeToFiles = org.matrix.rustcomponents.sdk.TracingFileConfiguration( path = File(context.cacheDir, "logs").absolutePath, filePrefix = "logs", fileSuffix = "log", maxFiles = 7uL, ), ) org.matrix.rustcomponents.sdk.setupTracing(rustTracingConfiguration) Os.setenv("RUST_BACKTRACE", "1", true)
because this RUST_BACKTRACE variable will be executed by the low-level sdk at https://github.com/matrix-org/matrix-rust-sdk/blob/d36b2a6869d7e5960bf652daecba5ea2de8f1cbf/bindings/matrix-sdk-ffi/src/platform.rs#L19-L23
Sorry, something went wrong.
No branches or pull requests
I never saw a configuration to enable logging, so that developers can more easily monitor sdk activity.
The text was updated successfully, but these errors were encountered: