Skip to content

Commit

Permalink
style: extract AndroidLog tag
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Jan 10, 2025
1 parent 62d05a1 commit a44209d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions parsely/src/main/java/com/parsely/parselyandroid/Log.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ import android.util.Log as AndroidLog

internal object AndroidLogWrapper : Log {

private const val TAG = "Parsely"

override fun i(message: String) {
AndroidLog.i("Parsely", message)
AndroidLog.i(TAG, message)
}

override fun d(message: String) {
AndroidLog.d("Parsely", message)
AndroidLog.d(TAG, message)
}

override fun e(message: String, throwable: Throwable?) {
AndroidLog.e("Parsely", message, throwable)
AndroidLog.e(TAG, message, throwable)
}
}

Expand Down

0 comments on commit a44209d

Please sign in to comment.