Author Topic: Can I generate a log that shows all errors?  (Read 1857 times)

ChopOMatic

  • Newbie
  • *
  • Posts: 4
Can I generate a log that shows all errors?
« on: July 04, 2015, 01:24:57 PM »
I'm processing 250,000 images in 10,000 directories, saving the output to a CSV file. No problems there in general; I have it working the way I want. As I watch the console during processing, however, I'm occasionally seeing a FILE NOT FOUND message scroll by. Is there a way to log these errors so I can go back and look at these exception files later to figure out what the problem is?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 17190
    • ExifTool Home Page
Re: Can I generate a log that shows all errors?
« Reply #1 on: July 04, 2015, 05:22:05 PM »
I don't know what system you are running, but most shells (except notably C-shells) allow this syntax:

COMMAND 2> errors.txt

Here, error output from COMMAND will get written to "errors.txt".

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

ChopOMatic

  • Newbie
  • *
  • Posts: 4
Re: Can I generate a log that shows all errors?
« Reply #2 on: July 05, 2015, 04:03:01 AM »
Thanks for the speedy reply, Phil. I'm running it from the standard command-line tool in Windows 10 preview.