Let the SDK manage the file log cleanup, and keep one week of log.

This commit is contained in:
Benoit Marty 2024-04-26 12:28:24 +02:00
parent ba1f21c0f9
commit c1c3227bde
7 changed files with 23 additions and 47 deletions

View file

@ -18,5 +18,10 @@ package io.element.android.libraries.matrix.api.tracing
sealed interface WriteToFilesConfiguration {
data object Disabled : WriteToFilesConfiguration
data class Enabled(val directory: String, val filenamePrefix: String) : WriteToFilesConfiguration
data class Enabled(
val directory: String,
val filenamePrefix: String,
val filenameSuffix: String?,
val numberOfFiles: Int?,
) : WriteToFilesConfiguration
}