Logging Packages?

logging

#1

Since we use R for some production tasks, logging’s a really useful (and/or mandatory) feature. There are some packages already out there for logs, e.g. log4r, logging, futile.logger, but all have either minimal maintenance or some design features that might be considered non-standard.

I’m curious as to what the RStudio folks themselves use (along with the rest of the Rstudio Community), and if they envision building a logging solution to live as part of the RStudio suite of packages/tools?


#2

I am pretty happy with futile.logger. I think it is more ore less feature-complete, that is why there is relatively little development happening.


#3

Like @hoelk, I also use futile.logger and find it rather complete.


#4

I like the approach of debugme: if logging is disabled, the overhead is next to zero.


#5

I hadn’t heard of futile.logger yet. I tried the logger package previously and couldn’t get on board. I’m just using print or message statements for logging currently… It’s definitely suboptimal.


#6

Very interesting - any suggestions on the best practice for logging Shiny apps in production?

Even for simple usage stats on a user level would be very informative


#7

New one here by @atheriel

https://cran.r-project.org/web/packages/rsyslog/index.html

logs directly to the main syslog process. Very simple api, perfect for my usecase.