{"repo":"r-lib/log4r","free":true,"listed":false,"github":"https://github.com/r-lib/log4r","clone":"git clone https://github.com/r-lib/log4r.git","description":"A fast & lightweight approach to logging in R based on the widely-emulated Apache Log4j project.","language":"R","stars":101,"topics":["logging","r"],"license":null,"category":"analytics","readme_excerpt":"log4r log4r is a fast, lightweight, object-oriented approach to logging in R based on the widely-emulated Apache Log4j project. log4r differs from other R logging packages in its focus on performance and simplicity. As such, it has fewer features – although it is still quite extensible, as seen below – but is much faster. See vignette(\"performance\", package = \"log4r\") for details. Unlike other R logging packages, log4r also has first-class support for structured logging. See vignette(\"structured-logging\", package = \"log4r\") for details. Installation The package is available from CRAN: If you want to use the development version, you can install the package from GitHub as follows: Usage Logging is configured by passing around logger objects created by logger() . By default, this will log to the console and suppress messages below the \"INFO\" level: Logging destinations are controlled by Appenders , a few of which are provided by the package. For instance, if we want to debug-level messages to a file: The appenders parameter takes a list, so you can log to multiple destinations transparently. For local development or simple batch R scripts run manually, writing log messages to a file for later inspection is convenient. However, for deployed R applications or automated scripts it is more likely you will need to send logs to a central location; see vignette(\"logging-beyond-local-files\", package = \"log4r\") . To control the format of the messages you can change the Layout used by eac","default_branch":null,"files":null,"tree":[],"storefront":"/r/r-lib","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/r-lib/log4r/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}