@@ -35,11 +35,13 @@ object BiometricLoggerImpl {
35
35
36
36
37
37
fun e (vararg msgs : Any? ) {
38
- val m = mutableListOf (* msgs).also {
39
- it.add(0 , " BiometricLogging" )
40
- it.add(1 , method)
38
+ externalLogger?.let { logger ->
39
+ val m = mutableListOf (* msgs).also {
40
+ it.add(0 , " BiometricLogging" )
41
+ it.add(1 , method)
42
+ }
43
+ logger.logError(* m.toTypedArray())
41
44
}
42
- externalLogger?.logError(* m.toTypedArray())
43
45
if (DEBUG ) Log .e(" BiometricLogging" , listOf (* msgs).toString())
44
46
}
45
47
@@ -49,21 +51,25 @@ object BiometricLoggerImpl {
49
51
50
52
51
53
fun e (e : Throwable ? , vararg msgs : Any? ) {
52
- val m = mutableListOf (* msgs).also {
53
- it.add(0 , " BiometricLogging" )
54
- it.add(1 , method)
54
+ externalLogger?.let { logger ->
55
+ val m = mutableListOf (* msgs).also {
56
+ it.add(0 , " BiometricLogging" )
57
+ it.add(1 , method)
58
+ }
59
+ logger.logException(e, * m.toTypedArray())
55
60
}
56
- externalLogger?.logException(e, * m.toTypedArray())
57
61
if (DEBUG ) Log .e(" BiometricLogging" , listOf (* msgs).toString(), e)
58
62
}
59
63
60
64
61
65
fun d (vararg msgs : Any? ) {
62
- val m = mutableListOf (* msgs).also {
63
- it.add(0 , " BiometricLogging" )
64
- it.add(1 , method)
66
+ externalLogger?.let { logger ->
67
+ val m = mutableListOf (* msgs).also {
68
+ it.add(0 , " BiometricLogging" )
69
+ it.add(1 , method)
70
+ }
71
+ logger.log(* m.toTypedArray())
65
72
}
66
- externalLogger?.log(* m.toTypedArray())
67
73
if (DEBUG ) Log .d(" BiometricLogging" , listOf (* msgs).toString())
68
74
}
69
75
0 commit comments