qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Trieloff <cctriel...@redhat.com>
Subject Re: [c++]: logging levels (was Re: C++ broker - some newbie questions)
Date Sat, 03 Jan 2009 01:08:28 GMT
Robert Greig wrote:
> 2009/1/2 Gordon Sim <gsim@redhat.com>:
>
>   
>> At present for example a warning is logged for every published message that
>> cannot be routed; every 'local' message dropped due to a 'no-local'
>> directive results in an info level log message etc. As these are per-message
>> events they could result in lots of log entries.
>>     
>
> Yes, I can see this will be an issue.
>
> Does your logging infrastructure have the concept of categories (like
> log4j)? It may be useful to have a *small* set of categories (not like
> log4j common usage which tends to map onto package namespaces) such as
> "general", "message-delivery", "connection" etc. and these can have
> levels controlled independently. The default for "general" would be
> INFO (say) but for "message-delivery" it could be "error+".
>
> I think having a small set of categories is a good idea and one that
> would be nice to see in the Java world since the log level is hard to
> tweak without detailed knowledge of the code structure (effectively).
>
>   

You can do stuff like this (only enable debug+ for cluster for example)

--log-enable=debug+:cluster

regards
Carl.



> RG
>   


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message