"Request For Comments on a Feature Suggestion" -- just wondering if others would find this useful. Frequently, when something really doesn't make sense, I like to bump up the console logging by editing logger.conf and changing console = error to console = debug,dtmf,error,event,info,notice,verbose,warning and entering logger reload When done, I have to undo the changes. It occurs to me that being able to just enter: logger reload maximum-verbosity.conf would be a useful feature and would be useful in many situations like "iax2 reload" or "extensions reload." Yays or nays? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
-----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steve Edwards Sent: Friday, July 16, 2010 1:00 PM To: Asterisk Users Mailing List Subject: [asterisk-users] RFCFS - reload specified file "Request For Comments on a Feature Suggestion" -- just wondering if others would find this useful. Frequently, when something really doesn't make sense, I like to bump up the console logging by editing logger.conf and changing console = error to console = debug,dtmf,error,event,info,notice,verbose,warning and entering logger reload When done, I have to undo the changes. It occurs to me that being able to just enter: logger reload maximum-verbosity.conf would be a useful feature and would be useful in many situations like "iax2 reload" or "extensions reload." Yays or nays? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- It's a nice idea, but the powers that be change verbs too often. Something like: - debug_reload xxx would be even nicer (IMO).
On Friday 16 July 2010 12:59:43 Steve Edwards wrote:> "Request For Comments on a Feature Suggestion" -- just wondering if others > would find this useful. > > Frequently, when something really doesn't make sense, I like to bump up > the console logging by editing logger.conf and changing > > console = error > > to > > console = debug,dtmf,error,event,info,notice,verbose,warning > > and entering > > logger reload > > When done, I have to undo the changes. > > It occurs to me that being able to just enter: > > logger reload maximum-verbosity.conf > > would be a useful feature and would be useful in many situations like > "iax2 reload" or "extensions reload." > > Yays or nays?Sounds fine to me. I don't think it should be particularly difficult to implement, as long as the CLI command implementing the reload is located in the same file as the reload itself (true for most modules, but for chicken-and-egg init situations is not always true for the core). -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org
On Fri, Jul 16, 2010 at 10:59:43AM -0700, Steve Edwards wrote:> "Request For Comments on a Feature Suggestion" -- just wondering if others > would find this useful. > > Frequently, when something really doesn't make sense, I like to bump up > the console logging by editing logger.conf and changing > > console = error > > to > > console = debug,dtmf,error,event,info,notice,verbose,warning > > and entering > > logger reload > > When done, I have to undo the changes. > > It occurs to me that being able to just enter: > > logger reload maximum-verbosity.conf > > would be a useful feature and would be useful in many situations like > "iax2 reload" or "extensions reload." > > Yays or nays?Would the ability to temporarily change logging settings from the CLI do the trick? -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
On Sat, Jul 17, 2010 at 3:31 PM, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:> Would the ability to temporarily change logging settings from the CLI do > the trick? >For debugging purposes, I would agree with this statement. Many times when trying to capture logs for a bug, you need to first modify your logger.conf, reload logger, enable debugs, reproduce, disable debug logs, edit logger.conf then reload. It would be great to do all that from the CLI. -- Paul Belanger | dCAP Polybeacon | Consultant Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode) blog.polybeacon.com