阅读背景:

自定义c++ cout类——输出到控制台和日志文件

来源:互联网 

I'm working on a program that makes heavy use of "cout << strSomething;" to log information to the console. I need to modify the program so that all console output goes to both the console AND a file. Although I can modify the "cout <<" in our code, there are several large third party libraries that also use "cout <<"; those libraries cannot be modified due to their licenses - so modifying all references to "cout <<" is not a solution. Also, the use of "wtee.exe" isn't possible due to the manner in which the command lines are executed.I'm working on a program that makes heavy use o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: