ESP device log to file?

Follow steps in this thread/guide to get the SSH and Web Terminal configured.

but use this command to get a command line for the esphome addon docker container

docker exec -it $(docker ps -f name=esphome -q) bash