Improve logging by printing the called functions

The output looks like strace one.
Append the results at the end of the result file

In fact, invoking one command can run many forks that will override the result
of the previous executing fork.
For instance without this patch calling gcc will not print all information but
only the one of the last runnning executable.