Which file store all error logs in the user build

Hello there,
I want to collect log files from Windows standalone users to detect errors in the build. But I am completely clueless which file is storing these errors? Or are error logs only generated for development builds?