Is it possible to have PyInstaller log to a file when running an executable in windowed mode

21 views
Skip to first unread message

Thomasedv

unread,
Sep 26, 2019, 7:33:49 AM9/26/19
to PyInstaller
Hi, In short, it's a bit frustrating to have to rebuild a executable in console mode if something goes wrong. Is there any relatively easy way to have the error sent to a file? Even sending it to whatever stdout or stderr is would be nice, because i was pretty sure it did that in older versions of pyinstaller when using the windowed mode, because i could run the .exe from cmd and get the error there, but not anymore. Reverting the change (for myself) or sending the error to a logfile would help greatly. Is anything like it doable, even if i have to jump into my pyinstaller source installation and tweak a few lines? (Like maybe creating a custom logger that logs critical errors to a file during execution of the .exe?)
Reply all
Reply to author
Forward
0 new messages