Adding it to my log_prefix !!!

Sounds dum but this simplifies my logging so much πŸ˜‚πŸ˜‚

Thanks guys, every day you learn something new!


On Sat, Dec 29, 2018 at 14:42 David Villasmil <
[email protected]> wrote:

> yep: $cfg(route)
> added Jun 2017
> Regards,
>
> David Villasmil
> email: [email protected]
> phone: +34669448337
>
>
> On Sat, Dec 29, 2018 at 10:09 PM * Paolo Visintin - evosip.cloud
> <[email protected]> wrote:
>
>> Joel , you could use $cfg(route) !
>>
>> I usually store my breadcrumbs in a define and use on top of every
>> interesting route !
>>
>>
>> Il giorno sab 29 dic 2018 alle 21:29 Joel Serrano <[email protected]> ha
>> scritto:
>>
>>> I wonder if there is a $something that contains the route-block-name?
>>>
>>> Anyone know?
>>>
>>>
>>> On Sat, Dec 29, 2018 at 10:52 David Villasmil <
>>> [email protected]> wrote:
>>>
>>>> I prefer using
>>>>
>>>> log(β€œL_ERR”, β€œ[REQUEST_ROUTE]: $ci Register Request\n”);
>>>>
>>>> That way you have the route block where you are logging from and the
>>>> Call-ID with your information string. (I mostly use L_ERR when debugging)
>>>>
>>>> Cheers
>>>> On Sat, 29 Dec 2018 at 11:02, Mojtaba <[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>> You could use xlog instead of log, like this:
>>>>>  xlog("Register request...\n");
>>>>> With Regards.Mojtaba
>>>>>
>>>>> On Sat, Dec 29, 2018 at 11:14 AM Muhammad Allaudin
>>>>> <[email protected]> wrote:
>>>>> >
>>>>> > Hi everyone,
>>>>> >
>>>>> > I have recently started working on Kamailio, I am trying to learn
>>>>> the basics. For "Register" route, I am trying to print the log but log is
>>>>> not appearing in log file. Other logs are there, only this one is missing.
>>>>> >
>>>>> > if(is_method("REGISTER")){
>>>>> >  log(2, "Register request");
>>>>> > }
>>>>> >
>>>>> > I will be really helpful if you can help me with this.
>>>>> >
>>>>> > Thanks & Kind Regards
>>>>> >
>>>>> > Regards,
>>>>> > M.Allaudin
>>>>> > Software Engineer
>>>>> > Nowtel Group
>>>>> > Phone # +92-333-8291874
>>>>> > Blogger @ allaudin.github.io
>>>>> > _______________________________________________
>>>>> > Kamailio (SER) - Users Mailing List
>>>>> > [email protected]
>>>>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> --Mojtaba Esfandiari.S
>>>>>
>>>>> _______________________________________________
>>>>> Kamailio (SER) - Users Mailing List
>>>>> [email protected]
>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>
>>>> _______________________________________________
>>>> Kamailio (SER) - Users Mailing List
>>>> [email protected]
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> [email protected]
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> --
>> *Paolo Visintin*
>> *CTO*
>> evosip.cloud
>> [image: Risultati immagini per evosip]
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> [email protected]
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> [email protected]
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to