It seems that --log-file option does not work with gpg on some circumstances.
Observation:
Command line on Windows 10 with Gpg4win 3.1.10:
echo hi > "C:\Users\intevation\testlog.txt" C:\Users\intevation>type testlog.txt hi gpg -vv --debug-all --log-file "C:\Users\intevation\testlog.txt" ^Z rem does not work
also on Debian GNU/Linux 9:
gpg --log-file /home/ber/testlog.txt -vv --debug-all -k # does not work gpg --version gpg (GnuPG) 2.2.13
The documentation lists --log-file,e.g. https://gnupg.org/documentation/manuals/gnupg/GPG-Esoteric-Options.html#GPG-Esoteric-Options
and there is no error message.
(Maybe I'm missing something here, tried it to answer https://wald.intevation.org/forum/forum.php?thread_id=2122&forum_id=21&group_id=11