Convert a LogEvent to a character string

# S3 method for LogEvent
toString(x, ...)

Arguments

x

a LogEvent

...

ignored

Value

a character scalar

Examples

toString(LogEvent$new(logger = lgr::lgr))
#> [1] "$level: `400`, $timestamp: `2021-09-16 08:08:01`, $logger: `root`, $caller: `NA`, $msg: `NA`"