How can I redirect the output of screen to a file?

Found possible answer at Stack Overflow:

Have you tried:

screen -L /dev/tty.Airconsole-1 > file.txt

You can get screen log with interactive command "Control-a H" on screen command. It create a log file as "screenlog.n" on your user directory such as "/Users/xxxx". Please see below link: https://ss64.com/osx/screen.html