ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Andrei Korzhyts on March 26, 2020, 11:13:55 PM

Title: Saving logs of operation
Post by: Andrei Korzhyts 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.
Title: Re: Saving logs of operation
Post by: obetz on March 27, 2020, 04:52:05 AM
See https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout
Title: Re: Saving logs of operation
Post by: Andrei Korzhyts 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.
Title: Re: Saving logs of operation
Post by: Phil Harvey 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
Title: Re: Saving logs of operation
Post by: Andrei Korzhyts 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.
Title: Re: Saving logs of operation
Post by: obetz 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.