pahud commented on issue #149:
URL: https://github.com/apache/apisix-docker/issues/149#issuecomment-795033768


   Containerized apps with docker are usually designed to send its logs to 
`stdout` and `stderr` and the docker log drivers will capture it and route to 
the external destinations. In AWS, the default log driver is 
[awslogs](https://docs.aws.amazon.com/AmazonECS/latest/userguide/using_awslogs.html)
 which routes all the logs from `stdout` and `stderr` to Amazon CloudWatch 
Logs.  It's also possible to run a sidecar container like `fluentd` or 
`fluentbit` as a log router to read the input from log files and send to 
external destinations.
   
   For single user local development, we can simply tail the log with  [docker 
log](https://docs.docker.com/config/containers/logging/dual-logging/), however, 
in cloud environment, we need log drivers and log routers to ship the logs out. 
And the first thing we need to do is to ensure all the app logs in container 
always go to stdout and stderr.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to