[logging]Redirecting process output to log
Hello, I am using the logging library by John Torjo. I create a process in my program and need to redirect its output to log. How do I do this? Thanks.
If by saying "redirect its output to log" you mean redirecting your
child process' stdout to a file, then I guess it has nothing to do
with logging libraries. If your application runs on windows, the
following MS article might be useful:
http://support.microsoft.com/kb/190351
2008/9/24 Vladimir Kiryazev
Hello,
I am using the logging library by John Torjo. I create a process in my program and need to redirect its output to log. How do I do this? Thanks.
You could use Boost.Process library.
http://www.netbsd.org/~jmmv/process/
There is an example of getting the child process output on the quick
tutorial section.
On Wed, Sep 24, 2008 at 1:58 PM, Igor R
If by saying "redirect its output to log" you mean redirecting your child process' stdout to a file, then I guess it has nothing to do with logging libraries. If your application runs on windows, the following MS article might be useful: http://support.microsoft.com/kb/190351
2008/9/24 Vladimir Kiryazev
: Hello,
I am using the logging library by John Torjo. I create a process in my program and need to redirect its output to log. How do I do this? Thanks.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- []'s Andre Paim Lemos
On Wed, 24 Sep 2008 20:13:11 +0200, Andre Paim Lemos
You could use Boost.Process library.
The link refers to a Boost.Process version from 2006. As there has been some progress lately I strongly recommend to use a new version, eg. http://www.highscore.de/boost/process/. There is another Boost.Process draft at http://www.boostpro.com/vault/index.php?direction=0&order=&directory=Process&. Boris
[...]
2008/9/24 Igor R
If by saying "redirect its output to log" you mean redirecting your child process' stdout to a file, then I guess it has nothing to do with logging libraries. If your application runs on windows, the following MS article might be useful: http://support.microsoft.com/kb/190351
Thanks but the problem is a log file is created by the log library and I don't have a handle to it.
participants (4)
-
Andre Paim Lemos
-
Boris
-
Igor R
-
Vladimir Kiryazev