[sr-dev] app_python: expanding log facilities

Ovidiu Sas osas at voipembedded.com
Mon Dec 3 23:16:41 CET 2012


Hello Konstantin,

I would be happy to commit your patch, but I would like to ask you to
remove, for now, the conditional FLAVOUR compilation.
You could leave the module name as "Router" for now.
Can you generate an new patch file without FLAVOUR?

Regards,
Ovidiu Sas

On Mon, Dec 3, 2012 at 2:50 PM, Konstantin M. <evilzluk at gmail.com> wrote:
> Hi Dev,
>
> Modified app_python:
>
> 1) Added FLAVOUR support
> 2) Added python objects:
>
>   Module Properties:
>      Log Levels:
>          L_ALERT
>          L_BUG
>          L_CRIT2
>          L_CRIT
>          L_ERR
>          L_WARN
>          L_NOTICE
>          L_INFO
>          L_DBG
>
>      Log Facilities:
>          DEFAULT_FACILITY
>
>   Module Methods:
>      LM_GEN1(self, int log_level, str msg)
>      LM_GEN2(self, int log_facility, int log_level, str msg)
>      LM_ALERT(self, str msg)
>      LM_CRIT(self, str msg)
>      LM_ERR(self, str msg)
>      LM_WARN(self, str msg)
>      LM_NOTICE(self, str msg)
>      LM_INFO(self, str msg)
>      LM_DBG(self, str msg)
>



More information about the sr-dev mailing list