Viewing and saving log files

Use the docker-compose logs command to view errors and events. You can view all containers or a specific container by specifying the container name.

About this task

To view logs for all components, issue the following command:
docker-compose logs
To view individual components, add the component name to the command. For example to view community logs:
docker-compose logs community
To save logs to a file, use the > character followed by the path and file name for the saved file.
docker-compose logs > /tmp/all_logs.txt