1. The 12-Factor App
XI. Logs: "A twelve-factor app never concerns itself with routing or storage of its output stream. It should not attempt to write to or manage logfiles. Instead
each running process writes its event stream
unbuffered
to stdout... The stream can be captured by the execution environment... and routed to one or more final destinations for viewing and long-term archival."
Source: https://12factor.net/logs
2. Heroku Dev Center
Logging Documentation: "Your app should write all logging messages to stdout or stderr. Heroku’s Logplex router is responsible for collating and routing log messages from your app and Heroku components... Log drains are attached to an app to receive all of its log messages. You can send your logs to a syslog server or an HTTPS endpoint [for analysis]."
Source: https://devcenter.heroku.com/articles/logging
"How Logging Works" section.
3. Red Hat OpenShift Documentation
About Cluster Logging: "The recommended practice for applications is to log to stdout and stderr
rather than to a file. The logging stack collects the logs
processes them
and forwards them to a log aggregator
such as Elasticsearch."
Source: https://docs.openshift.com/container-platform/4.14/logging/cluster-logging.html
"About cluster logging" section.