1.5.1. xlog([level,] format)

Print a formated message using LOG function.

Meaning of the parameters is as follows:

·        level - The level that will be used in LOG function. It can be:

·        L_ALERT

·        L_CRIT

·        L_ERR

·        L_WARN

·        L_NOTICE

·        L_INFO

·        L_DBG

What really matters is the third letter of the value.

If this parameter is missing, the implicit log level is 'L_ERR'.

·        format - The formatted string to be printed.

This function can be used from REQUEST_ROUTE, FAILURE_ROUTE, ONREPLY_ROUTE, BRANCH_ROUTE.

 

Example 1-3. xlog usage

...

xlog("L_ERR", "time [$Tf] method <$rm> r-uri <$ru> 2nd via <$hdr(via[1])>\n");

...

 


http://www.openser.org/docs/modules/1.2.x/xlog.html#AEN98