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: `2023-03-04 20:04:48`, $logger: `root`, $caller: `NA`, $msg: `NA`"