Skip to content

Commit

Permalink
Implement DefaultLogger
Browse files Browse the repository at this point in the history
Signed-off-by: mramotar <mramotar@dropbox.com>
  • Loading branch information
matt-ramotar committed Mar 16, 2024
1 parent 9996f42 commit 13ed1d4
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package org.mobilenativefoundation.paging.core.impl

import co.touchlab.kermit.CommonWriter
import org.mobilenativefoundation.paging.core.Logger

class DefaultLogger : Logger {
override fun log(message: String) {
logger.d(
"""
$message
""".trimIndent(),
)
}

private val logger =
co.touchlab.kermit.Logger.apply {
setLogWriters(listOf(CommonWriter()))
setTag("org.mobilenativefoundation.paging")
}
}

0 comments on commit 13ed1d4

Please sign in to comment.