[asterisk-dev] Help.... Addition of timestamp in front of debug
info in CLI
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Thu May 31 02:24:39 MST 2007
On Thu, May 31, 2007 at 05:04:23AM -0400, Arpit Mehta wrote:
> hi all,
>
> I require to add a timestamp in front of all the debug information (for e.g.
> like the one given below) being printed to the cli. I am unable to find the
> .c file or function where this debug information is printed. I would be
> most grateful if someone could be point out the appropriate function for it.
> I think this addition would be most useful for researchers like me who have
> started to use Asterisk as a tool for various experiments.
>
> < Supervisory frame:
> < SAPI: 00 C/R: 0 EA: 0
> < TEI: 000 EA: 1
> < Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
> < N(R): 076 P/F: 1
> < 0 bytes of data
> -- ACKing all packets from 75 to (but not including) 76
> -- Since there was nothing left, stopping T200 counter
> -- Stopping T203 counter since we got an ACK
> -- Nothing left, starting T203 counter
> -- Got RR response to our frame
> -- Restarting T203 counter
Every line in the asterisk logs has a time stamp.
For a real-time display:
tail -f /var/log/asterisk/filename
e.g: full
if you have enabled the 'full' log in logger.conf. Note that the full
log can inflate and take quite some disk space.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir at jabber.org
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-dev
mailing list