% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Appender.R \name{AppenderFileRotating} \alias{AppenderFileRotating} \title{Log to a rotating file} \description{ Log to a rotating file Log to a rotating file } \details{ An extension of \link{AppenderFile} that rotates logfiles based on certain conditions. Please refer to the documentation of \code{\link[rotor:rotate]{rotor::rotate()}} for the meanings of the extra arguments } \seealso{ \link{AppenderFileRotatingDate}, \link{AppenderFileRotatingTime}, \code{\link[rotor:rotate]{rotor::rotate()}} Other Appenders: \code{\link{Appender}}, \code{\link{AppenderBuffer}}, \code{\link{AppenderConsole}}, \code{\link{AppenderFile}}, \code{\link{AppenderFileRotatingDate}}, \code{\link{AppenderFileRotatingTime}}, \code{\link{AppenderTable}} } \concept{Appenders} \section{Super classes}{ \code{\link[lgr:Filterable]{lgr::Filterable}} -> \code{\link[lgr:Appender]{lgr::Appender}} -> \code{\link[lgr:AppenderFile]{lgr::AppenderFile}} -> \code{AppenderFileRotating} } \section{Active bindings}{ \if{html}{\out{
}} \describe{ \item{\code{backups}}{A \code{data.frame} containing information on path, file size, etc... on the available backups of \code{file}.} } \if{html}{\out{
}} } \section{Methods}{ \subsection{Public methods}{ \itemize{ \item \href{#method-AppenderFileRotating-new}{\code{AppenderFileRotating$new()}} \item \href{#method-AppenderFileRotating-append}{\code{AppenderFileRotating$append()}} \item \href{#method-AppenderFileRotating-rotate}{\code{AppenderFileRotating$rotate()}} \item \href{#method-AppenderFileRotating-prune}{\code{AppenderFileRotating$prune()}} \item \href{#method-AppenderFileRotating-set_file}{\code{AppenderFileRotating$set_file()}} \item \href{#method-AppenderFileRotating-set_size}{\code{AppenderFileRotating$set_size()}} \item \href{#method-AppenderFileRotating-set_max_backups}{\code{AppenderFileRotating$set_max_backups()}} \item \href{#method-AppenderFileRotating-set_compression}{\code{AppenderFileRotating$set_compression()}} \item \href{#method-AppenderFileRotating-set_create_file}{\code{AppenderFileRotating$set_create_file()}} \item \href{#method-AppenderFileRotating-set_backup_dir}{\code{AppenderFileRotating$set_backup_dir()}} \item \href{#method-AppenderFileRotating-format}{\code{AppenderFileRotating$format()}} \item \href{#method-AppenderFileRotating-clone}{\code{AppenderFileRotating$clone()}} } } \if{html}{\out{
Inherited methods
}} \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-new}{}}} \subsection{Method \code{new()}}{ \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$new( file, threshold = NA_integer_, layout = LayoutFormat$new(), filters = NULL, size = Inf, max_backups = Inf, compression = FALSE, backup_dir = dirname(file), create_file = NULL )}\if{html}{\out{
}} } \subsection{Arguments}{ \if{html}{\out{
}} \describe{ \item{\code{size, max_backups, compression, backup_dir, fmt}}{see \code{\link[rotor:rotate]{rotor::rotate()}} for the meaning of these arguments. Note that \code{fmt} corresponds to \code{format} and \code{backup_dir} to \code{dir}.} } \if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-append}{}}} \subsection{Method \code{append()}}{ \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$append(event)}\if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-rotate}{}}} \subsection{Method \code{rotate()}}{ \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$rotate(force = FALSE)}\if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-prune}{}}} \subsection{Method \code{prune()}}{ \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$prune(max_backups = self$max_backups)}\if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_file}{}}} \subsection{Method \code{set_file()}}{ \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$set_file(file)}\if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_size}{}}} \subsection{Method \code{set_size()}}{ \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$set_size(x)}\if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_max_backups}{}}} \subsection{Method \code{set_max_backups()}}{ \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$set_max_backups(x)}\if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_compression}{}}} \subsection{Method \code{set_compression()}}{ \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$set_compression(x)}\if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_create_file}{}}} \subsection{Method \code{set_create_file()}}{ \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$set_create_file(x)}\if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-set_backup_dir}{}}} \subsection{Method \code{set_backup_dir()}}{ \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$set_backup_dir(x)}\if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-format}{}}} \subsection{Method \code{format()}}{ \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$format(color = false, ...)}\if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-AppenderFileRotating-clone}{}}} \subsection{Method \code{clone()}}{ The objects of this class are cloneable with this method. \subsection{Usage}{ \if{html}{\out{
}}\preformatted{AppenderFileRotating$clone(deep = FALSE)}\if{html}{\out{
}} } \subsection{Arguments}{ \if{html}{\out{
}} \describe{ \item{\code{deep}}{Whether to make a deep clone.} } \if{html}{\out{
}} } } }