cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: [proposal] deprecation logger
Date Wed, 02 Apr 2003 18:34:58 GMT
Sylvain Wallez wrote:

> Hi folks,
>
> We have in the 2.1 a number of features that are considered as 
> deprecated, although still supported. We need a way to inform users 
> (the ones that write Cocoon apps) that they use such deprecated 
> features in a way that allows them to be found easily, and not 
> intermixed in the usual logging flood.
>
> So I'm thinking about a global logger dedicated to deprecation 
> messages. This would allow to write all messages going to that logger 
> to e.g. a "deprecated.log" file.
>
> Now how do we make this logger accessible ? A static variable doesn't 
> seem to be a good solution, so I'm thinking of adding it to the Avalon 
> context. Any Contextualizable component can then access it.
>
> Thoughts ? 


Nice suggestion; but can't we just use WARN for deprecation warnings? In 
above-then-debug log setting these messages will be well noticable.

Vadim


> Sylvain




Mime
View raw message