Output an error in php.
error_log()
Check the log.
Docker logs -f Container ID
# -f(follow)Continue to output with.
When you want to display only the access log
Docker logs container ID-f 2>/dev/null
# /dev/Erase the display with null. 2 is an error output
When you want to display only the error log
Docker logs container ID-f 1>/dev/null
# /dev/Erase the display with null. 1 is standard output
with docker-compose
docker-compose logs
#The access log and error log cannot be separated.
Recommended Posts