HelpingHandYou mentioned that the phone generally restarts when you plug it in for charging, so maybe you can enable the log around that time. Do take screenshots to indicate the occurrence of the issue.
I have enabled logging but I might need to wait a day. would it make sense to enable it after a few hours have passed and it's closer to its next restart?
I'm asking because this is my main phone now so it would be logging everything I do in a day (not sure yet what kind of information is being logged, what does the log contain? How can I review it before it's sent?)