[asterisk-bugs] [Asterisk 0010891]: [patch] Add support for setting log levels on remote console
noreply at bugs.digium.com
noreply at bugs.digium.com
Tue May 27 12:50:22 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=10891
======================================================================
Reported By: jamesgolovich
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 10891
Category: Core/NewFeature
Reproducibility: N/A
Severity: feature
Priority: normal
Status: new
Asterisk Version: 1.6.0-beta4
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 10-04-2007 18:29 CDT
Last Modified: 05-27-2008 12:50 CDT
======================================================================
Summary: [patch] Add support for setting log levels on remote
console
Description:
Since there was some interest in being able to enable certain log levels on
different remote consoles I threw together this proof of concept patch.
There isn't really any error checking and more work needs to be done, but I
thought I would throw it out there for comments.
It adds the cli command "logger set level <level> <state>" that you
execute on a channel you want to change state on. level is the numeric
logger level 0-6:
0 "DEBUG",
1 "EVENT",
2 "NOTICE",
3 "WARNING",
4 "ERROR",
5 "VERBOSE",
6 "DTMF"
<state> is on or off
This could be extended to include a command line option for what to
include or maybe even a profile or something. Obviously this would need to
have a way to use the real names instead of numbers, but it works for now
======================================================================
----------------------------------------------------------------------
eliel - 05-27-08 12:50
----------------------------------------------------------------------
1) I think you should generate the
e->command with the debug levels like (at runtime):
"logger set level [DEBUG|ERROR|DTMF|etc..] [enable/true|disable/false]
to have
autocomplete on the CLI.
The e->usage too.
2) "Set a specific log level to enables/disabled for this console." ->
"Set a specific log level to enable/disable logging for this console."
3) "LEVEL %d STATUS %d", Status 1 or 0 is not a user friendly message,
also the LEVEL 0-10. Example: "Level DEBUG, status off"
Thanks in advanced.
Issue History
Date Modified Username Field Change
======================================================================
05-27-08 12:50 eliel Note Added: 0087379
======================================================================
More information about the asterisk-bugs
mailing list