<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid1177099846.3455.64.camel@localhost.localdomain"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">Hi,
I am new in using dBus. I have installed an application that use dbus
and launch several processes.
New I launch the client I see its traces (fprintf(stderr), or g_print)
but I can not see the other traces of the processes that are going to be
launched.
If I launch this process before my application I see its traces in the
console where I launched it.
Is there a way to redirect traces in order to have all of them in the
same console?
Is it compulsory to launch processes before the application? (in my case
it is annoying because a process will launch several other processes)

    </pre>
  </blockquote>
  <pre wrap=""><!---->
Launch the processes before hand.  D-Bus activation is just there to
start a process if it isn't already started.  Otherwise the process
should act exactly the same.  The other option is to redirect stdio and
stderr to a file in the app that is being launched.</pre>
</blockquote>
<br>
Hi,<br>
As I told you, I can not launch all processes before because some of
them are launched by other processes.<br>
It seems my only solution is to redirect traces into a file (Am I
right?).<br>
The system of traces, of the code I want to use, is&nbsp; based on
g_debug(), g_warning() <br>
Is there a simple way to redirect the output of such functions?<br>
(I mean a better way to rebuild file gmessage.c of the glib where I
should hardcode a file-descriptor in function g_log_default_handler()
instead of stdout)<br>
<br>
Thanks for your help<br>
Matthieu<br>
</body>
</html>