Vadim Gritsenko wrote:...
Sylvain Wallez wrote:
...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.
Nice suggestion; but can't we just use WARN for deprecation warnings? In above-then-debug log setting these messages will be well noticable.
Well, this is effectively much more simple ;-)
But don't you think a special category getting all deprecation warnings could be useful ?
I think that's useful; just don't want to introduce new stuff only because of this... How about something among the lines of:
<deprecation-filter id="deprecation" log-level="WARN"> ... </deprecation-filter>
;-)
Vadim