> I personally find debug mode too verbose already and think we should reduce 
> the amount of information produced by debug mode.


I don’t know enough about Tcl logging but in Python you can have separate, 
hierarchical loggers for each major modules in your system and then activate 
and set the logging level for each of them.

It means you could have a top logger (« macports ») set to INFO…

>> That would allow us to optionally output more diagnostic info in various 
>> areas, such as our portgroups,

…and several module loggers (« macports.portgroups », « 
macports.portgroups.compiler_blacklist »,…) set to DEBUG.

The advantage is that you keep a manageable, standard set of logging levels and 
have a small set of functional module loggers.

G.

Reply via email to