Recording log of an application in realtime

%3CLINGO-SUB%20id%3D%22lingo-sub-2688087%22%20slang%3D%22en-US%22%3ERecording%20log%20of%20an%20application%20in%20realtime%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2688087%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20question%20regarding%20the%20output%20of%20an%20application%20that%20i%20start.%3C%2FP%3E%3CP%3EI%20want%20to%20save%20the%20output%20to%20a%20.txt%20file%2C%20the%20output%20changes%20in%20real%20time%20and%20i%20would%20like%20it%20to%20continuously%20write%20to%20the%20.txt%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20idea%20suggestions%3F%3C%2FP%3E%3CP%3EI%20tried%20recording%20the%20powershell%20with%20the%20%22start-transcript%20%22%20and%20write%20to%20a%20.txt%20file%2C%20but%20it%20will%20just%20write%20the%20commands%20and%20not%20the%20dynamic%20output%20of%20the%20program%20that%20was%20running.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20didnt%20work%20for%20me%20either.%3C%2FP%3E%3CP%3Estart%20foo.exe%26nbsp%3B%20%26gt%3B%20log.txt%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20how%20the%20output%20of%20the%20program%20looks%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Outputapp.png%22%20style%3D%22width%3A%20482px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306016i59D64BDB2A7CDC93%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Outputapp.png%22%20alt%3D%22Outputapp.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2688087%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2688674%22%20slang%3D%22en-US%22%3ERe%3A%20Recording%20log%20of%20an%20application%20in%20realtime%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2688674%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1138457%22%20target%3D%22_blank%22%3E%40TCD123%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20try%20to%20use%20double%20%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20will%20increment%20the%20output%20in%20a%20file%2C%20for%20example.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Estart%20foo.exe%26nbsp%3B%20%26gt%3B%26gt%3B%20log.txt%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have a question regarding the output of an application that i start.

I want to save the output to a .txt file, the output changes in real time and i would like it to continuously write to the .txt file.

 

Any idea suggestions?

I tried recording the powershell with the "start-transcript " and write to a .txt file, but it will just write the commands and not the dynamic output of the program that was running.

 

This didnt work for me either.

start foo.exe  > log.txt

 

This is how the output of the program looks

Outputapp.png

 

 

2 Replies

@TCD123 

 

Hi, try to use double >

 

It will increment the output in a file, for example.

 

start foo.exe  >> log.txt

Just tried your suggestion and it didn't work.@yuzoyox