How do I construct a terminal process that displays lines as they are added to a log file?

I’m needed to monitor a log file while I’m doing some debugging. The script I’m debugging writes to the terminal (STDIO) so having debugging info mixed in with that is annoying and I miss things.

What I would like to do is write my debugging info to a log file, simply appending each entry, and have a separate terminal window that is monitoring that file and displaying each entry as it is added.

Could I do something like:

echo << "=-EOF-="

where that somehow reads from the file and echoes each line until it encounters the magic termination string?

I have a feeling that this is possible, but I don’t really know where to begin.

Any suggestions?


I’m on 10.14 Mojave, so I’m using Bash