| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/Appender.R |
| 3 |
\name{AppenderTable} |
| 4 |
\alias{AppenderTable} |
| 5 |
\title{Abstract class for logging to tabular structures} |
| 6 |
\description{ |
| 7 |
\strong{NOTE}: This is an \emph{abstract class}. Abstract classes cannot be instantiated |
| 8 |
directly, but are exported for package developers that want to extend lgr - |
| 9 |
for example by creating their own \link[=Appender]{Appenders} or \link[=Layout]{Layouts}. |
| 10 |
Please refer to the \emph{see also} section for actual implementations of this |
| 11 |
class. |
| 12 |
|
| 13 |
AppenderTable is extended by Appenders that write to a data |
| 14 |
source that can be interpreted as tables, (usually a \code{data.frame}). Examples |
| 15 |
are \code{AppenderDbi}, \code{AppenderRjdbc} and \code{AppenderDt} from the |
| 16 |
\href{https://github.com/s-fleck/lgrExtra}{lgrExtra} package. |
| 17 |
} |
| 18 |
\seealso{ |
| 19 |
Other abstract classes: |
| 20 |
\code{\link{Appender}}, |
| 21 |
\code{\link{AppenderMemory}}, |
| 22 |
\code{\link{Filterable}} |
| 23 |
|
| 24 |
Other Appenders: |
| 25 |
\code{\link{Appender}}, |
| 26 |
\code{\link{AppenderBuffer}}, |
| 27 |
\code{\link{AppenderConsole}}, |
| 28 |
\code{\link{AppenderFile}}, |
| 29 |
\code{\link{AppenderFileRotating}}, |
| 30 |
\code{\link{AppenderFileRotatingDate}}, |
| 31 |
\code{\link{AppenderFileRotatingTime}} |
| 32 |
} |
| 33 |
\concept{Appenders} |
| 34 |
\concept{abstract classes} |
| 35 |
\section{Super classes}{ |
| 36 |
\code{\link[lgr:Filterable]{lgr::Filterable}} -> \code{\link[lgr:Appender]{lgr::Appender}} -> \code{AppenderTable} |
| 37 |
} |
| 38 |
\section{Active bindings}{ |
| 39 |
\if{html}{\out{<div class="r6-active-bindings">}} |
| 40 |
\describe{ |
| 41 |
\item{\code{data}}{\code{character} scalar. Contents of the table, parsed to a |
| 42 |
\code{data.frame}.} |
| 43 |
|
| 44 |
\item{\code{data}}{\code{character} scalar. Like \verb{$data}, but returns a \code{data.table} |
| 45 |
instead (requires the \strong{data.table} package).} |
| 46 |
} |
| 47 |
\if{html}{\out{</div>}} |
| 48 |
} |
| 49 |
\section{Methods}{ |
| 50 |
\subsection{Public methods}{ |
| 51 |
\itemize{ |
| 52 |
\item \href{#method-AppenderTable-new}{\code{AppenderTable$new()}} |
| 53 |
\item \href{#method-AppenderTable-show}{\code{AppenderTable$show()}} |
| 54 |
\item \href{#method-AppenderTable-format}{\code{AppenderTable$format()}} |
| 55 |
} |
| 56 |
} |
| 57 |
\if{html}{\out{ |
| 58 |
<details><summary>Inherited methods</summary> |
| 59 |
<ul> |
| 60 |
<li><span class="pkg-link" data-pkg="lgr" data-topic="Filterable" data-id="add_filter"><a href='../../lgr/html/Filterable.html#method-Filterable-add_filter'><code>lgr::Filterable$add_filter()</code></a></span></li> |
| 61 |
<li><span class="pkg-link" data-pkg="lgr" data-topic="Filterable" data-id="filter"><a href='../../lgr/html/Filterable.html#method-Filterable-filter'><code>lgr::Filterable$filter()</code></a></span></li> |
| 62 |
<li><span class="pkg-link" data-pkg="lgr" data-topic="Filterable" data-id="remove_filter"><a href='../../lgr/html/Filterable.html#method-Filterable-remove_filter'><code>lgr::Filterable$remove_filter()</code></a></span></li> |
| 63 |
<li><span class="pkg-link" data-pkg="lgr" data-topic="Filterable" data-id="set_filters"><a href='../../lgr/html/Filterable.html#method-Filterable-set_filters'><code>lgr::Filterable$set_filters()</code></a></span></li> |
| 64 |
<li><span class="pkg-link" data-pkg="lgr" data-topic="Appender" data-id="append"><a href='../../lgr/html/Appender.html#method-Appender-append'><code>lgr::Appender$append()</code></a></span></li> |
| 65 |
<li><span class="pkg-link" data-pkg="lgr" data-topic="Appender" data-id="set_layout"><a href='../../lgr/html/Appender.html#method-Appender-set_layout'><code>lgr::Appender$set_layout()</code></a></span></li> |
| 66 |
<li><span class="pkg-link" data-pkg="lgr" data-topic="Appender" data-id="set_threshold"><a href='../../lgr/html/Appender.html#method-Appender-set_threshold'><code>lgr::Appender$set_threshold()</code></a></span></li> |
| 67 |
</ul> |
| 68 |
</details> |
| 69 |
}} |
| 70 |
\if{html}{\out{<hr>}} |
| 71 |
\if{html}{\out{<a id="method-AppenderTable-new"></a>}} |
| 72 |
\if{latex}{\out{\hypertarget{method-AppenderTable-new}{}}} |
| 73 |
\subsection{Method \code{new()}}{ |
| 74 |
\subsection{Usage}{ |
| 75 |
\if{html}{\out{<div class="r">}}\preformatted{AppenderTable$new(...)}\if{html}{\out{</div>}} |
| 76 |
} |
| 77 |
|
| 78 |
} |
| 79 |
\if{html}{\out{<hr>}} |
| 80 |
\if{html}{\out{<a id="method-AppenderTable-show"></a>}} |
| 81 |
\if{latex}{\out{\hypertarget{method-AppenderTable-show}{}}} |
| 82 |
\subsection{Method \code{show()}}{ |
| 83 |
Show recent log entries |
| 84 |
\subsection{Usage}{ |
| 85 |
\if{html}{\out{<div class="r">}}\preformatted{AppenderTable$show(threshold = NA_integer_, n = 20L)}\if{html}{\out{</div>}} |
| 86 |
} |
| 87 |
|
| 88 |
\subsection{Arguments}{ |
| 89 |
\if{html}{\out{<div class="arguments">}} |
| 90 |
\describe{ |
| 91 |
\item{\code{threshold}}{an \code{integer} or \code{character} \link[=log_level]{threshold}. |
| 92 |
Only show events with a log level at or below this threshold.} |
| 93 |
|
| 94 |
\item{\code{n}}{a positive \code{integer} scalar. Show at most that many entries} |
| 95 |
} |
| 96 |
\if{html}{\out{</div>}} |
| 97 |
} |
| 98 |
} |
| 99 |
\if{html}{\out{<hr>}} |
| 100 |
\if{html}{\out{<a id="method-AppenderTable-format"></a>}} |
| 101 |
\if{latex}{\out{\hypertarget{method-AppenderTable-format}{}}} |
| 102 |
\subsection{Method \code{format()}}{ |
| 103 |
\subsection{Usage}{ |
| 104 |
\if{html}{\out{<div class="r">}}\preformatted{AppenderTable$format(color = FALSE, ...)}\if{html}{\out{</div>}} |
| 105 |
} |
| 106 |
|
| 107 |
} |
| 108 |
} |