From: stefano <st....@gm...> - 2008-01-29 12:46:58
|
If you mean how to log libxpp and libsipdht2 messages to a file it's not implemented, however you can add yourself the following code somewhere in gsim-sipdht2.c #include <sofia-sip/su_log.h> extern su_log_t xpp_log[]; extern su_log_t sipdht_log[]; static void log_handler(void *logarg, char const *format, va_list ap) { static FILE *log = NULL; if (!log) log = fopen("/tmp/sim.log", "a+"); vfprintf(log, format, ap); fflush(log); } then in main() just before gtk_main() add: su_log_set_level(xpp_log, 8); su_log_redirect(xpp_log, log_handler, NULL); su_log_set_level(sipdht_log, 8); su_log_redirect(sipdht_log, log_handler, NULL); Ciao, Stefano 2008/1/29, Oredope, Adetola <ao...@es...>: > > I know I have asked this earlier on but I was kind of unclear > > > > I will like to find out if there is way I can collect the results of the > simulator into a file or out put it to command line. > > > > Regards > > > > Adetola Oredope > > > > Pervasive Networks and Services Research Group, > > University of Essex, Department of Electronic Systems Engineering, > > Wivenhoe Park, Colchester > > CO4 3SQ > > United Kingdom > > http://www.essex.ac.uk/ese/research/pervasivenetworks/ > > > > --- Never walk away from someone who deserves help; your hand is God's > hand for that person. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Sipdht-devel mailing list > Sip...@li... > https://lists.sourceforge.net/lists/listinfo/sipdht-devel > > |