On Tue, Mar 2, 2010 at 4:45 PM, Scott Lawrence <[email protected]> wrote:
> I've added a wiki page on Logging:
>
>        http://wiki.sipfoundry.org/display/xecsdev/Logging+Guidelines
>
> One thing I'd like to emphasize:
>
>        We should do our logging so that INFO level is sufficient for
>        any user or support person to diagnose a configuration or
>        interoperability problem.
>
>        The DEBUG level should be reserved for developer-level
>        information only - it is for finding bugs in the code, not for
>        finding bugs in configuration or other vendors messages.
>
> Following the guidelines allows us to be very verbose (and we already
> are) at DEBUG level without creating logs that so big that they are hard
> to work with.
>
> Not all existing sipXecs code conforms to the above rules - if you
> notice exceptions, then fix them or check with others to see if they
> think that a change is needed.  Don't raise an issue on every instance -
> we don't need that - just consult or post here and get on with it.
>
> I would like to have the configuration UI pop up a confirmation dialog
> when DEBUG is selected along the lines of:
>
>        This level is intended only for developer use and is not
>        normally needed to diagnose a production release problem.  It
>        will produce very large log files.  Do you really want to do
>        this?
>
> Thoughts?

Any warning is fine but we must allow end users to set DEBUG from the GUI.

 Every component may want to adopt a trace level which is even finer
than debug but that should not be user settable except by instructions
from a developer ( which could be as clunky as vi some file and set a
property there). A trace level could produce truly prodigious amounts
of trace, thus making it unmanageable for traces gathered for longer
than a few minutes but that is the developer's choice. If that's what
the component takes, then that's what it takes. The developer who is
stuck maintaining it should have that freedom.



Ranga

>
>
> _______________________________________________
> sipx-dev mailing list [email protected]
> List Archive: http://list.sipfoundry.org/archive/sipx-dev
> Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
> sipXecs IP PBX -- http://www.sipfoundry.org/
>



-- 
M. Ranganathan
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to