Logging Json to STDOUT in Shiny Server
Answer a question
Docker containers can be configured on AWS to send anything that appears in stdout to be sent to a centralized logging service. This is a neat trick, if you print appropriate JSON to stdout then you can automate large parts of your logging pipeline without having to worry about files.
I'd love to get this working with shiny-server in a docker container. But getting something printed to stdout seems rather tricky. The server automatically places everything in a logfile, which is exactly what I do not want it to do. Is it possible for shiny-server to log to stdout instead of a file?
Answers
This is a supported feature as of Shiny Server 1.5.13. You can set the environment variable SHINY_LOG_STDERR=1 (for example, using an ENV statement in your Dockerfile) to enable this behavior.
https://docs.rstudio.com/shiny-server/#logging-to-standard-error
更多推荐
所有评论(0)