Just curious...
Is this something that just recently started happening?
What operating environment (Win10/Win11/etc...) are y'all using and are you current with all patches?
Since RedFox 1 mentioned "It stops logging as soon as the TLS handshake is completed. Strange."
I found the following from 10/17/22, don't know if applicable to this situation:
SSL/TLS handshake might fail at below that was fixed/addressed in a recent release that popped up after KB5018410 and they say this issue was resolved in the out-of-band update KB5020435.
Note for developers: Affected connections are likely to be sending multiple frames within a single input buffer, specifically one or more complete records with a partial record that is less than 5 bytes all sent in a single buffer. When this issue is encountered, your app will receive SEC_E_ILLEGAL_MESSAGE when the connection fails.
Code:
https://learn.microsoft.com/en-us/windows/release-health/resolved-issues-windows-10-20h2#2924msgdesc
Just something to look at.
When I've had weird issues like this, I'd immediately do an SFC /scannow, chkdsk /f, try safe mode, uninstall program in Windows and do a clean install, try a previous version of the software, boot from an older system backup if you do rotations, etc...
Don't know your environment or what you've tried so far.
Most weird issues like this are usually software conflict issues and the weirdest one I ever had was caused by Malwarebytes (they even have a custom cleanup tool to fix some issues) and I finally had to use a system cleaner that resolved the issue.
Best of luck,
Mike