[OpenSIPS-Users] opensips logging format

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Apr 21 04:22:21 EDT 2017


As an extra note here . When logging via syslog, the time and pid part 
are formated by syslog itself. When logging to stderr, opensips emulates 
the syslog formating for consistency reasons.

Regards,

Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/19/2017 05:36 PM, Benjamin Cropley wrote:
> https://www.opensips.org/Documentation/Script-CoreVar-2-2#toc87 and 
> https://www.opensips.org/Documentation/Script-CoreVar-2-2#toc91 should 
> be able to help
>
> For example...
>
> xlog("L_DBG","$time(%b-%d_%H-%M-%S).$Tsm");
>
> All the best,
> Ben Cropley
>
> On Wed, Apr 19, 2017 at 3:59 PM, Ramachandran, Agalya (Contractor) 
> <Agalya_Ramachandran at comcast.com 
> <mailto:Agalya_Ramachandran at comcast.com>> wrote:
>
>     Hi Bogdan/team,
>
>     I have couple of  questions regarding the logging format for
>     OpenSIPS logs.
>
>     1)Is it possible to include milliseconds in the time stamp.
>     Currently it is displaying till seconds ( Apr 18 15:05:53 ).
>
>     2)Is it possible to log in standard ISO format such as
>     "2017-04-18T15:05:53.0005" instead of “Apr 18 15:05:53”
>
>     If there is a way to achieve the above two, let me know any
>     configs to be added or so.
>
>     Regards,
>
>     Agalya
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
>
>
>
> -- 
> All the best,
> Ben Cropley
> 07539 366 905
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170421/27087280/attachment.html>


More information about the Users mailing list