Logging: is there an R standard?

At my current client we're running some docker containers with shiny-apps and may consider running some plumbR apps too. We'd appreciate being able to do proper logging though. The python devs in the team do not mind running some R stuff, but they do appreciate being able to monitor the apps.

In particular they appreciate the following:

  • a logger that can show on what line/ in what function the logger is being called
  • a logger that can be told to only show INFO or DEBUG
  • a logger that outputs json to stdout such that AWS can automatically collect the logs centrally

Is there a standard solution out there for this?

2 Likes

Not sure about the standard, but here are couple of examples in this topic:

1 Like

I haven't used it myself, but there is a package called futile.logger which implements a Python style logging system in R.