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