| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/lgr-package.R |
| 3 |
\docType{package} |
| 4 |
\name{lgr-package} |
| 5 |
\alias{lgr} |
| 6 |
\alias{lgr-package} |
| 7 |
\title{A Fully Featured Logging Framework for R} |
| 8 |
\description{ |
| 9 |
For details please refer to \code{vignette("lgr", package = "lgr")}. |
| 10 |
} |
| 11 |
\section{Options}{ |
| 12 |
|
| 13 |
|
| 14 |
You can also set these options in your \code{.Rprofile} to make them permanent. |
| 15 |
Some options can also be set via environment variables (The environment |
| 16 |
variables are only used if the option is not set manually from R). |
| 17 |
|
| 18 |
\describe{ |
| 19 |
\item{\code{lgr.colors}}{a \code{list} of \code{functions} used for coloring the log |
| 20 |
levels in console output. Usually these will be functions from the |
| 21 |
package \strong{crayon}} |
| 22 |
\item{\code{lgr.log_levels}}{A named \code{integer} vector of log levels that are |
| 23 |
known to lgr for labeling, setting thresholds, etc... . Instead of |
| 24 |
modifying this option manually use \code{\link[=add_log_levels]{add_log_levels()}} and |
| 25 |
\code{\link[=remove_log_levels]{remove_log_levels()}}} |
| 26 |
\item{\code{lgr.default_threshold}}{ |
| 27 |
\code{character} or \code{integer} scalar. The minimum \link[=log_levels]{log level} that |
| 28 |
should be processed by the root logger. Defaults to \code{400} (\code{"info"}), |
| 29 |
or to the value of the environment variable \code{LGR_DEFAULT_THRESHOLD} |
| 30 |
if it is set. This option overrides the threshold specified in |
| 31 |
\code{lgr.default_config} if both are set. |
| 32 |
} |
| 33 |
\item{\code{lgr.default_config}}{ |
| 34 |
Default configuration for the root logger. Can either be a special list |
| 35 |
object, a path to a YAML file, or a character scalar containing YAML |
| 36 |
code. See \link{logger_config} for details. Defaults to the value of the |
| 37 |
environment variable \code{LGR_DEFAULT_CONFIG} if it is set. |
| 38 |
} |
| 39 |
\item{\code{lgr.suspend_logging}}{\code{TRUE} or \code{FALSE}. Suspend all logging for |
| 40 |
all loggers. Defaults to the \code{TRUE} if the environment variable |
| 41 |
\code{LGR_SUSPEND_LOGGING} is set to \code{"TRUE"}. Instead of modifying this |
| 42 |
option manually use \code{\link[=suspend_logging]{suspend_logging()}} and \code{\link[=unsuspend_logging]{unsuspend_logging()}}} |
| 43 |
\item{\code{lgr.user}}{a \code{character} scalar. The default username for |
| 44 |
\code{lgr::get_user()}. |
| 45 |
} |
| 46 |
} |
| 47 |
} |
| 48 |
|
| 49 |
\seealso{ |
| 50 |
Useful links: |
| 51 |
\itemize{ |
| 52 |
\item \url{https://s-fleck.github.io/lgr/} |
| 53 |
\item Report bugs at \url{https://github.com/s-fleck/lgr/issues/} |
| 54 |
} |
| 55 |
|
| 56 |
} |
| 57 |
\author{ |
| 58 |
\strong{Maintainer}: Stefan Fleck \email{[email protected]} (\href{https://orcid.org/0000-0003-3344-9851}{ORCID}) |
| 59 |
|
| 60 |
} |
| 61 |
\keyword{internal} |