as_LogEvent: Coerce objects to LogEvent

View source: R/LogEvent.R

as_LogEventR Documentation

Coerce objects to LogEvent

Description

Smartly coerce R objects that look like LogEvents to LogEvents. Mainly useful for developing Appenders.

Usage

as_LogEvent(x, ...)

## S3 method for class 'list'
as_LogEvent(x, ...)

## S3 method for class 'data.frame'
as_LogEvent(x, ...)

Arguments

x

any supported R object

...

currently ignored

Details

Note: as_LogEvent.data.frame() only supports single-row data.frames

Value

a LogEvent

See Also

Other docs relevant for extending lgr: LogEvent, event_list(), standardize_threshold()


lgr documentation built on Sept. 6, 2022, 1:05 a.m.