Repository: yt-dlp
Issue: Feature Request: Ability to Log Failed Downloads
Labels: enhancement

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm requesting a feature unrelated to a specific site
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2023.07.06** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

Using the "--batch-file" option to download multiple videos generates a substantial amount of output, making it difficult to identify reports of videos that failed to download. A feature that allows the URLs of videos that couldn't be downloaded to be written to a specific text file (log file) would be beneficial both for manual inspection and for allowing error logging while using "-quiet --progress-bar". Current 'abort' commands that halt the download process when failures are detected are not ideal, as they interrupt the entire operation.

**Is the description of the issue itself sufficient?** and **Is there enough context in your bug report?** In my view, yes.  If anything remains confusing, please let me know.
**Are you using the latest version?** Yes.
**Is the issue already documented?** Not that I can tell through searching open issues.
**Why are existing options not enough?** I do not think there are any logging options such as I describe.
**Have you read and understood the changes, between youtube-dl and yt-dlp** Yes.
**Does the issue involve one problem, and one problem only?** Yes.
**Is anyone going to need the feature?** Yes, I believe this would be needed widely by anyone using the --batch-file option.
**Is your question about yt-dlp?** Yes.
**Are you willing to share account details if needed?** Yes.
**Is the website primarily used for piracy?** No.

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-quiet', '--progress', '-vU']
[debug] Portable config "C:\Users\Molly\bin\EXE\ydl\yt-dlp.conf": ['--audio-format', 'mp3', '--format', 'mp4', '-o', 'C:\\Users\\Molly\\zInboxes\\Capture\\Videos\\%(duration>%H-%M-%S)s %(title)S.%(ext)s', '--embed-subs', '--sub-lang', 'en', '--restrict-filenames', '--trim-filenames', '150', '--sponsorblock-remove', 'sponsor,interaction,selfpromo,interaction,intro,outro']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.07.06 [b532a3481] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19043-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg n5.0-1-ga66b58d61c-20220117 (setts), ffprobe n5.0-1-ga66b58d61c-20220117, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.07.06, Current version: stable@2023.07.06
Current Build Hash: 5ff3e702171a50175c34397494e2d18ce35d771c2110b1e59bd173ec2fb352aa
yt-dlp is up to date (stable@2023.07.06)
```