Debian Codegraph @

man/AppenderFileRotating.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/Appender.R
3 \name{AppenderFileRotating}
4 \alias{AppenderFileRotating}
5 \title{Log to a rotating file}
6 \description{
7 Log to a rotating file
8
9 Log to a rotating file
10 }
11 \details{
12 An extension of \link{AppenderFile} that rotates logfiles based on certain
13 conditions. Please refer to the documentation of \code{\link[rotor:rotate]{rotor::rotate()}} for
14 the meanings of the extra arguments
15 }
16 \seealso{
17 \link{AppenderFileRotatingDate}, \link{AppenderFileRotatingTime}, \code{\link[rotor:rotate]{rotor::rotate()}}
18
19 Other Appenders:
20 \code{\link{Appender}},
21 \code{\link{AppenderBuffer}},
22 \code{\link{AppenderConsole}},
23 \code{\link{AppenderFile}},
24 \code{\link{AppenderFileRotatingDate}},
25 \code{\link{AppenderFileRotatingTime}},
26 \code{\link{AppenderTable}}
27 }
28 \concept{Appenders}
29 \section{Super classes}{
30 \code{\link[lgr:Filterable]{lgr::Filterable}} -> \code{\link[lgr:Appender]{lgr::Appender}} -> \code{\link[lgr:AppenderFile]{lgr::AppenderFile}} -> \code{AppenderFileRotating}
31 }
32 \section{Active bindings}{
33 \if{html}{\out{<div class="r6-active-bindings">}}
34 \describe{
35 \item{\code{backups}}{A \code{data.frame} containing information on path, file size,
36 etc... on the available backups of \code{file}.}
37 }
38 \if{html}{\out{</div>}}
39 }
40 \section{Methods}{
41 \subsection{Public methods}{
42 \itemize{
43 \item \href{#method-AppenderFileRotating-new}{\code{AppenderFileRotating$new()}}
44 \item \href{#method-AppenderFileRotating-append}{\code{AppenderFileRotating$append()}}
45 \item \href{#method-AppenderFileRotating-rotate}{\code{AppenderFileRotating$rotate()}}
46 \item \href{#method-AppenderFileRotating-prune}{\code{AppenderFileRotating$prune()}}
47 \item \href{#method-AppenderFileRotating-set_file}{\code{AppenderFileRotating$set_file()}}
48 \item \href{#method-AppenderFileRotating-set_size}{\code{AppenderFileRotating$set_size()}}
49 \item \href{#method-AppenderFileRotating-set_max_backups}{\code{AppenderFileRotating$set_max_backups()}}
50 \item \href{#method-AppenderFileRotating-set_compression}{\code{AppenderFileRotating$set_compression()}}
51 \item \href{#method-AppenderFileRotating-set_create_file}{\code{AppenderFileRotating$set_create_file()}}
52 \item \href{#method-AppenderFileRotating-set_backup_dir}{\code{AppenderFileRotating$set_backup_dir()}}
53 \item \href{#method-AppenderFileRotating-format}{\code{AppenderFileRotating$format()}}
54 \item \href{#method-AppenderFileRotating-clone}{\code{AppenderFileRotating$clone()}}
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="set_layout"><a href='../../lgr/html/Appender.html#method-Appender-set_layout'><code>lgr::Appender$set_layout()</code></a></span></li>
65 <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>
66 <li><span class="pkg-link" data-pkg="lgr" data-topic="AppenderFile" data-id="show"><a href='../../lgr/html/AppenderFile.html#method-AppenderFile-show'><code>lgr::AppenderFile$show()</code></a></span></li>
67 </ul>
68 </details>
69 }}
70 \if{html}{\out{<hr>}}
71 \if{html}{\out{<a id="method-AppenderFileRotating-new"></a>}}
72 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-new}{}}}
73 \subsection{Method \code{new()}}{
74 \subsection{Usage}{
75 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$new(
76 file,
77 threshold = NA_integer_,
78 layout = LayoutFormat$new(),
79 filters = NULL,
80 size = Inf,
81 max_backups = Inf,
82 compression = FALSE,
83 backup_dir = dirname(file),
84 create_file = NULL
85 )}\if{html}{\out{</div>}}
86 }
87
88 \subsection{Arguments}{
89 \if{html}{\out{<div class="arguments">}}
90 \describe{
91 \item{\code{size, max_backups, compression, backup_dir, fmt}}{see \code{\link[rotor:rotate]{rotor::rotate()}} for the meaning of these arguments. Note that
92 \code{fmt} corresponds to \code{format} and \code{backup_dir} to \code{dir}.}
93 }
94 \if{html}{\out{</div>}}
95 }
96 }
97 \if{html}{\out{<hr>}}
98 \if{html}{\out{<a id="method-AppenderFileRotating-append"></a>}}
99 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-append}{}}}
100 \subsection{Method \code{append()}}{
101 \subsection{Usage}{
102 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$append(event)}\if{html}{\out{</div>}}
103 }
104
105 }
106 \if{html}{\out{<hr>}}
107 \if{html}{\out{<a id="method-AppenderFileRotating-rotate"></a>}}
108 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-rotate}{}}}
109 \subsection{Method \code{rotate()}}{
110 \subsection{Usage}{
111 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$rotate(force = FALSE)}\if{html}{\out{</div>}}
112 }
113
114 }
115 \if{html}{\out{<hr>}}
116 \if{html}{\out{<a id="method-AppenderFileRotating-prune"></a>}}
117 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-prune}{}}}
118 \subsection{Method \code{prune()}}{
119 \subsection{Usage}{
120 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$prune(max_backups = self$max_backups)}\if{html}{\out{</div>}}
121 }
122
123 }
124 \if{html}{\out{<hr>}}
125 \if{html}{\out{<a id="method-AppenderFileRotating-set_file"></a>}}
126 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_file}{}}}
127 \subsection{Method \code{set_file()}}{
128 \subsection{Usage}{
129 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$set_file(file)}\if{html}{\out{</div>}}
130 }
131
132 }
133 \if{html}{\out{<hr>}}
134 \if{html}{\out{<a id="method-AppenderFileRotating-set_size"></a>}}
135 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_size}{}}}
136 \subsection{Method \code{set_size()}}{
137 \subsection{Usage}{
138 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$set_size(x)}\if{html}{\out{</div>}}
139 }
140
141 }
142 \if{html}{\out{<hr>}}
143 \if{html}{\out{<a id="method-AppenderFileRotating-set_max_backups"></a>}}
144 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_max_backups}{}}}
145 \subsection{Method \code{set_max_backups()}}{
146 \subsection{Usage}{
147 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$set_max_backups(x)}\if{html}{\out{</div>}}
148 }
149
150 }
151 \if{html}{\out{<hr>}}
152 \if{html}{\out{<a id="method-AppenderFileRotating-set_compression"></a>}}
153 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_compression}{}}}
154 \subsection{Method \code{set_compression()}}{
155 \subsection{Usage}{
156 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$set_compression(x)}\if{html}{\out{</div>}}
157 }
158
159 }
160 \if{html}{\out{<hr>}}
161 \if{html}{\out{<a id="method-AppenderFileRotating-set_create_file"></a>}}
162 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_create_file}{}}}
163 \subsection{Method \code{set_create_file()}}{
164 \subsection{Usage}{
165 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$set_create_file(x)}\if{html}{\out{</div>}}
166 }
167
168 }
169 \if{html}{\out{<hr>}}
170 \if{html}{\out{<a id="method-AppenderFileRotating-set_backup_dir"></a>}}
171 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_backup_dir}{}}}
172 \subsection{Method \code{set_backup_dir()}}{
173 \subsection{Usage}{
174 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$set_backup_dir(x)}\if{html}{\out{</div>}}
175 }
176
177 }
178 \if{html}{\out{<hr>}}
179 \if{html}{\out{<a id="method-AppenderFileRotating-format"></a>}}
180 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-format}{}}}
181 \subsection{Method \code{format()}}{
182 \subsection{Usage}{
183 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$format(color = false, ...)}\if{html}{\out{</div>}}
184 }
185
186 }
187 \if{html}{\out{<hr>}}
188 \if{html}{\out{<a id="method-AppenderFileRotating-clone"></a>}}
189 \if{latex}{\out{\hypertarget{method-AppenderFileRotating-clone}{}}}
190 \subsection{Method \code{clone()}}{
191 The objects of this class are cloneable with this method.
192 \subsection{Usage}{
193 \if{html}{\out{<div class="r">}}\preformatted{AppenderFileRotating$clone(deep = FALSE)}\if{html}{\out{</div>}}
194 }
195
196 \subsection{Arguments}{
197 \if{html}{\out{<div class="arguments">}}
198 \describe{
199 \item{\code{deep}}{Whether to make a deep clone.}
200 }
201 \if{html}{\out{</div>}}
202 }
203 }
204 }