At 04:31 21/2/01, Rodney Waldhoff wrote:
>>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.)
But if we were going to bind to log4j - why not go the whole hog and
completely bind to log4j ;)
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*