简体   繁体   中英

Filtering C++/Win32 command line output message

I have a Win32/C++ Command line program which displays message using "printf()" function. The program uses a 3rd party lib/dll which generates log message to the same console screen.

So is there a way to redirect all output messages to a PLACE and filter my own message to the console screen?

There are 3 main 'streams' that console application may have:

  1. Standard output
  2. Error output
  3. Log output

More info here

Now you can redirect one/all/multiple outputs to file, or any other stream like here

Then when you have file you can read and then filter to way that you like to see.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM