TeamViewer log file is named as “TeamViewerXX_Logfile.log”, where XX is your TeamViewer version. By default, the TeamViewer log files can be found in these locations:
TeamViewer Log file location in Windows
TeamViewer Full Version and Host:
C:\Program Files (x86)\TeamViewer
C:\Program Files\TeamViewer
TeamViewer QuickSupport:
C:\Users\[username]\AppData\Roaming\TeamViewer
TeamViewer Log file location in MacOS
TeamViewer Full Version, Host, and QuickSupport:
Macintosh HD → Users → [username] → Library → Logs → TeamViewer