| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/LogEvent.R |
| 3 |
\name{as_LogEvent} |
| 4 |
\alias{as_LogEvent} |
| 5 |
\alias{as_LogEvent.list} |
| 6 |
\alias{as_LogEvent.data.frame} |
| 7 |
\title{Coerce objects to LogEvent} |
| 8 |
\usage{ |
| 9 |
as_LogEvent(x, ...) |
| 10 |
|
| 11 |
\method{as_LogEvent}{list}(x, ...) |
| 12 |
|
| 13 |
\method{as_LogEvent}{data.frame}(x, ...) |
| 14 |
} |
| 15 |
\arguments{ |
| 16 |
\item{x}{any supported \R object} |
| 17 |
|
| 18 |
\item{...}{currently ignored} |
| 19 |
} |
| 20 |
\value{ |
| 21 |
a \link{LogEvent} |
| 22 |
} |
| 23 |
\description{ |
| 24 |
Smartly coerce \R objects that look like LogEvents to LogEvents. Mainly |
| 25 |
useful for developing Appenders. |
| 26 |
} |
| 27 |
\details{ |
| 28 |
\strong{Note}: \code{as_LogEvent.data.frame()} only supports single-row \code{data.frames} |
| 29 |
} |
| 30 |
\seealso{ |
| 31 |
Other docs relevant for extending lgr: |
| 32 |
\code{\link{LogEvent}}, |
| 33 |
\code{\link{event_list}()}, |
| 34 |
\code{\link{standardize_threshold}()} |
| 35 |
} |
| 36 |
\concept{docs relevant for extending lgr} |