toggle menu
Kermit
2.0.4
common
switch theme
search in API
kermit-test
/
co.touchlab.kermit
/
TestLogWriter
Test
Log
Writer
class
TestLogWriter
(
loggable
:
Severity
)
:
LogWriter
Members
Constructors
Test
Log
Writer
Link copied to clipboard
constructor
(
loggable
:
Severity
)
Types
Log
Entry
Link copied to clipboard
data
class
LogEntry
(
val
severity
:
Severity
,
val
message
:
String
,
val
tag
:
String
?
,
val
throwable
:
Throwable
?
)
Properties
logs
Link copied to clipboard
val
logs
:
List
<
TestLogWriter.LogEntry
>
Functions
assert
Count
Link copied to clipboard
fun
assertCount
(
count
:
Int
)
assert
Last
Link copied to clipboard
fun
assertLast
(
check
:
TestLogWriter.LogEntry
.
(
)
->
Boolean
)
is
Loggable
Link copied to clipboard
open
override
fun
isLoggable
(
tag
:
String
,
severity
:
Severity
)
:
Boolean
log
Link copied to clipboard
open
override
fun
log
(
severity
:
Severity
,
message
:
String
,
tag
:
String
,
throwable
:
Throwable
?
)
reset
Link copied to clipboard
fun
reset
(
)