Re: [OpenSIPStack] Problem with OnOutgoingCallConnected
Brought to you by:
joegenbaclor
From: Ilian J. C. P. <ip...@so...> - 2007-07-16 12:12:28
|
Hi Tom, All logging (previously opal.log and sip.log) can now be centralized to the Logger class (courtesy of Joegen). All you have to do is replace the following lines in SoftPhone.cxx: Logger::SetDefaultLevel( 5 ); Logger::SetDefaultLogFile( "sip.log" ); If I wanted to redirect ALL logs to the sip.log file, I could replace the lines with: Logger::SetDefaultLevel( 5 ); static unsigned int options = // These are the options set in SetDefaultLogFile LogDateAndTime | LogThread | LogAppendToFile; Logger::SetDefaultLogStream( new LoggingFileStream( "sip.log", options ) ); // Redirects all logs to sip.log If you want to redirect the logs to some place else, just subclass LoggingDestination and pass a pointer to that object in SetDefaultLogStream. All classes you need for extending the logging behavior is found in Logger.cxx. You can also find built-in LoggingDestination subclassess in the same file which you may find useful. Also, please wait for Joegen's announcement of the OpenSIPStack stable release. There are many modifications. So you will have to fully checkout the modules then. Regards, Ilian tomach wrote: > thanks for the answers > > Ok, then please try to make a solution because on the begging of next week i give it to test and would be good to have logs during this test....that to know what goes wrong in case... > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > |