python pjsua logging

AC
allen chan
Fri, Jan 5, 2018 12:53 AM

Hi All,

I have a python script that is testing SIP registrations through our SBC.
I want to log each of the transactions to easily troubleshoot failures.
It looks like the default logging behavior is to overwrite the file.

I see in the pjsua that there is an option to add a flag to append to file
instead of overwriting it
log_file_flags=PJ_O_APPEND
http://www.pjsip.org/pjsip/docs/html/structpjsua__logging__config.htm

However the python documentation doesn't seem to support it.
http://www.pjsip.org/python/pjsua.htm#LogConfig

Is there any other way to configure this append behavior?

Thanks

Allen Michael Chan

Hi All, I have a python script that is testing SIP registrations through our SBC. I want to log each of the transactions to easily troubleshoot failures. It looks like the default logging behavior is to overwrite the file. I see in the pjsua that there is an option to add a flag to append to file instead of overwriting it log_file_flags=PJ_O_APPEND http://www.pjsip.org/pjsip/docs/html/structpjsua__logging__config.htm However the python documentation doesn't seem to support it. http://www.pjsip.org/python/pjsua.htm#LogConfig Is there any other way to configure this append behavior? Thanks -- Allen Michael Chan
AC
allen chan
Wed, Jan 10, 2018 1:32 AM

Can anyone help with this?

On Thu, Jan 4, 2018 at 4:53 PM, allen chan allen.michael.chan@gmail.com
wrote:

Hi All,

I have a python script that is testing SIP registrations through our SBC.
I want to log each of the transactions to easily troubleshoot failures.
It looks like the default logging behavior is to overwrite the file.

I see in the pjsua that there is an option to add a flag to append to file
instead of overwriting it
log_file_flags=PJ_O_APPEND
http://www.pjsip.org/pjsip/docs/html/structpjsua__logging__config.htm

However the python documentation doesn't seem to support it.
http://www.pjsip.org/python/pjsua.htm#LogConfig

Is there any other way to configure this append behavior?

Thanks

Allen Michael Chan

--
Allen Michael Chan

Can anyone help with this? On Thu, Jan 4, 2018 at 4:53 PM, allen chan <allen.michael.chan@gmail.com> wrote: > Hi All, > > I have a python script that is testing SIP registrations through our SBC. > I want to log each of the transactions to easily troubleshoot failures. > It looks like the default logging behavior is to overwrite the file. > > I see in the pjsua that there is an option to add a flag to append to file > instead of overwriting it > log_file_flags=PJ_O_APPEND > http://www.pjsip.org/pjsip/docs/html/structpjsua__logging__config.htm > > However the python documentation doesn't seem to support it. > http://www.pjsip.org/python/pjsua.htm#LogConfig > > Is there any other way to configure this append behavior? > > Thanks > -- > Allen Michael Chan > -- Allen Michael Chan