Author Topic: Saving logs of operation  (Read 291 times)

Andrei Korzhyts

  • Sr. Member
  • ****
  • Posts: 236
Saving logs of operation
« on: March 26, 2020, 11:13:55 PM »
Hi Phil
Is it possible to save operation logs to a text file?
Now I'm manually copying the contents of the Windows console to a text file for later error analysis.


Andrei Korzhyts

  • Sr. Member
  • ****
  • Posts: 236
Re: Saving logs of operation
« Reply #2 on: March 27, 2020, 05:14:20 AM »
Thans, Oliver.

exiftool -title -ext jpg . > log.log

I see output only in file.
But I need see output both in console and in file.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16885
    • ExifTool Home Page
Re: Saving logs of operation
« Reply #3 on: March 27, 2020, 08:38:05 AM »
You can either "tail" the output file, or duplicate the pipe.  Both ways are possible on Mac/Linux, but you'll have to figure out how to do this in Windows.

- 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 ($).

Andrei Korzhyts

  • Sr. Member
  • ****
  • Posts: 236
Re: Saving logs of operation
« Reply #4 on: March 27, 2020, 08:52:47 AM »
The main thing for me is to understand where to look for the answer.
So this is not an Exiftool functionality (it doesn't make sense, because the system can do it), but a system functionality?
I've never needed this, so I don't know where to look for the answer.

obetz

  • Sr. Member
  • ****
  • Posts: 252
Re: Saving logs of operation
« Reply #5 on: March 27, 2020, 09:05:51 AM »
in addition to "tail" being also available for Windows, one can also open the output file with a text editor with automatic reload of modified files.

PsPad is rather versatile.