[Click] ErrorHandler 'Seriousness'
Beyers Cronje
bcronje at gmail.com
Thu Jun 22 09:39:47 EDT 2006
Hi Eddie,
Basically what I'm looking for is a way to populate my element code with
debug/error messages and associate a 'Seriousness' level to each message.
Then have the ability to at runtime via handler calls enable/disable
printing of each 'Seriousness' level.
I suppose one way to do this is to create a new 'DebugElement' with base
class 'Element' that implements all necessary handlers and 'Seriousness'
level printing handling. Then one could create new elements derived from
'DebugElement' if you require the debug/error features.
In short, this will provide a similar feature to Cisco's IOS 'debug
[feature]' and 'no debug [feature]' functionality.
Does this make any sense?
Beyers
On 6/22/06, Eddie Kohler <kohler at cs.ucla.edu> wrote:
>
> Hi Beyers,
>
> The 'Seriousness' level *can* be used that way. For example, the
> user-level
> driver supports a -w/--no-warnings option that doesn't print 'warning' and
> 'message' level comments. Check out VerboseFilterErrorHandler. However,
> only
> that ErrorHnadler -- a "veneer" that can fit over any other ErrorHandler
> --
> has that ability. What do you need?
>
> Eddie
>
>
> Beyers Cronje wrote:
> > Hi all,
> >
> > A quick question, how does Click's ErrorHandler handle the 'Seriousness'
> > level of messages? I.e. can I populate my element code with ERR_DEBUG,
> > ERR_MESSAGE and ERR_ERROR messages and during runtime set/change the
> active
> > Seriousness level of ErrorHandler to only print the requested level of
> > messages? If so how do I change the active seriousness level of the
> default
> > error handler ?
> >
> > Thanks
> >
> > Beyers
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
More information about the click
mailing list