|Summary:||ASTERISK-01127: [patch] Timestamps on console|
|Reporter:||Matt Riddell (zx81)||Labels:|
|Date Opened:||2004-02-29 22:47:05.000-0600||Date Closed:||2011-06-07 14:05:00|
|Environment:||Attachments:||( 0) ast_timestamp.diff|
|Description:||It would be really helpful if timestamps were printed to the left of the messages in the console.|
Andrew Thompson wrote:
Should not be too difficult if everything that writes to the console
uses a wrapper function to actually do the writes to the console.
Can someone confirm if this is the case?
|Comments:||By: heison (heison) 2004-03-21 23:24:40.000-0600|
you can change ASTERISK_PROMPT in asterisk.c.
But what we really need is a customizable prompt. Something like:
export ASTERISK_PROMPT='[%d %t] %h CLI> '
where d=date, t=time, h=hostname, etc.
By: James Golovich (jamesgolovich) 2004-03-21 23:32:01.000-0600
heison: not what he was asking for. He's asking for the verbose messages to have a timestamp
By: twisted (twisted) 2004-03-24 18:46:51.000-0600
I've included a diff for a dirty, ugly hack of this feature. modifiy it, love it, do whatever to it you wish.
It *IS* ugly, but this is one of my first few attempts at C coding, let alone patches :P
Example of output:
Mar 24 17:36:02 -- Accepting DIAL from 192.168.0.116, formats = 0x4
Mar 24 17:36:02 -- Executing VoiceMailMain("IAX2[JoshR@JoshR]/9", "1001") in new stack
Mar 24 17:36:02 -- Playing 'vm-password' (language 'en')