>Well the most basic adaptor would be
>
>interface LoggerAdaptor {
>  void log( String message );
>  void log( String message, Throwable throwable );
>}
>
>Pete

Sure, my point exactly.

A reasonable (I think) optional extension would be to add a priority code in 
one way or another, something like:

interface PrioritizedLoggerAdaptor extends LoggerAdapter {
  void log( Priority p, String message );
  void log( Priority p, String message, Throwable throwable );
}

(The base adapter would use a default priority when a priority is needed.)

Probably a way to indicate the "category" of messages would be useful too.

But this is the slow way to code, yes?

Why don't we just take some subset of the log4j interface (perhaps a large 
subset), and run with that? (But I guess that's part of the question that 
started this thread.)

- rod
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to