N
nobody
I am writing a framework that other developers will write plug-ins
for. I would like for one of the features of the framework to be to
intercept all text written to stdout/stderr and prepend timestamps on
each line.
I would like for this to work for all the printf-line functions
(fprintf, etc...) as well as C++ I/O streams (cout and cerr).
The key here is that I would like to get these timestamps on the lines
of text written to stdout/stderr without requiring any code
change/recompilation of the plug-ins.
Also, the target platform is linux.
Any ideas? Thanks!
for. I would like for one of the features of the framework to be to
intercept all text written to stdout/stderr and prepend timestamps on
each line.
I would like for this to work for all the printf-line functions
(fprintf, etc...) as well as C++ I/O streams (cout and cerr).
The key here is that I would like to get these timestamps on the lines
of text written to stdout/stderr without requiring any code
change/recompilation of the plug-ins.
Also, the target platform is linux.
Any ideas? Thanks!