[asterisk-users] RFCFS - reload specified file

2010-07-16 Thread Steve Edwards
"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   sedwa...@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


Re: [asterisk-users] RFCFS - reload specified file

2010-07-16 Thread Danny Nicholas


-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@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   sedwa...@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).



-- 
_
-- 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


Re: [asterisk-users] RFCFS - reload specified file

2010-07-16 Thread Tilghman Lesher
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

-- 
_
-- 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


Re: [asterisk-users] RFCFS - reload specified file

2010-07-17 Thread Tzafrir Cohen
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.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

-- 
_
-- 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


Re: [asterisk-users] RFCFS - reload specified file

2010-07-17 Thread Steve Edwards
> 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?

On Sat, 17 Jul 2010, Tzafrir Cohen wrote:

> Would the ability to temporarily change logging settings from the CLI do 
> the trick?

For the specific example of temporarily changing the logging level, yes.

I think a generic implementation would also be valuable when debugging 
dialplans or endpoint configurations.

Many years ago I wrote an Asterisk application that implemented an "edit" 
command so you could enter "edit extensions.conf" and when you exited the 
edit, the file would be automagically reloaded. Unfortunately I had to 
drop it when the client's interest waned.

-- 
Thanks in advance,
-
Steve Edwards   sedwa...@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


Re: [asterisk-users] RFCFS - reload specified file

2010-07-18 Thread Tilghman Lesher
On Saturday 17 July 2010 17:23:19 Steve Edwards wrote:
> > 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.
> >>
> >> 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?
>
> On Sat, 17 Jul 2010, Tzafrir Cohen wrote:
> > Would the ability to temporarily change logging settings from the CLI do
> > the trick?
>
> For the specific example of temporarily changing the logging level, yes.
>
> I think a generic implementation would also be valuable when debugging
> dialplans or endpoint configurations.

https://issues.asterisk.org/view.php?id=17668

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org

-- 
_
-- 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


Re: [asterisk-users] RFCFS - reload specified file

2010-07-18 Thread Paul Belanger
On Sat, Jul 17, 2010 at 3:31 PM, Tzafrir Cohen  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.belan...@polybeacon.com | IRC: pabelanger (Freenode)
blog.polybeacon.com

-- 
_
-- 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