Summary:ASTERISK-00593: [patch] Logger patch to send VERBOSE msg to log files
Reporter:tclark (tclark)Labels:
Date Opened:2003-11-29 11:02:21.000-0600Date Closed:2008-01-15 14:42:16.000-0600
Versions:Frequency of
Environment:Attachments:( 0) asterisk-syslog-20031201-verbose.diff
( 1) logger.patch
( 2) verbose.diff
( 3) verbose.diff.txt
Description:This trival patch adds the ability to send all those ast_verbose msg to the log files, adding the standard ThreadID, Time stamps.
I find this realy helps to pin down the sequence of events
that leads to core's or deadlocks..
Its also just nice to see quickly the time of each msg


In logger.conf just add a line like
messages => notice,warning,error,debug,verbose

I would be interested in what the behavior of
console => verbose
should be,
with this patch is just dups the console verbose msg's
so dont add the verbose to the console
1) Ignore verbose if it is set in logger
2) Make this a flag to say if any ast_verbose msg should be displayed on the console, currently this is almost controlled by the "vvv' command line args, but yiu stll get sparse console out, even w/o a "v" command line arg

see attached patch
Comments:By: tclark (tclark) 2003-11-29 11:19:06.000-0600

This si an example of what you get in the logs now
Nov 25 17:31:04 VERBOSE[147474]:   == Everyone is busy at this time
Nov 25 17:31:04 VERBOSE[49159]:     -- Call accepted by (format GSM)
Nov 25 17:31:04 VERBOSE[49159]:     -- Format for call is GSM
Nov 25 17:31:04 VERBOSE[139281]:     -- Called dispatch@
Nov 25 17:31:04 DEBUG[49159]: File chan_iax.c, Line 3780 (socket_read): Ooh, voi

By: tclark (tclark) 2003-12-02 01:45:01.000-0600

Close this out ww has merged it into 597, let get that puppy into cvs

By: zoa (zoa) 2004-01-09 18:56:56.000-0600

any one in favor to put this in cvs ?

By: zoa (zoa) 2004-01-09 19:03:22.000-0600

This seems related to 0000466 and 0000587

By: ww (ww) 2004-01-12 12:37:40.000-0600

the new logger stuff from 587 has been imported.
it should be possible to rework it a little bit
for 0.9.0 to implement this

By: ww (ww) 2004-01-26 17:20:11.000-0600

new patch that adds back this functionality
with new logger system

By: Mark Spencer (markster) 2004-01-26 18:31:46.000-0600

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 14:42:16.000-0600

Repository: asterisk
Revision: 2079

U   trunk/configs/logger.conf.sample
U   trunk/include/asterisk/logger.h
U   trunk/logger.c

r2079 | markster | 2008-01-15 14:42:16 -0600 (Tue, 15 Jan 2008) | 2 lines

Add verbose messages to be logged (bug ASTERISK-593)