Ceki Gülcü wrote:
I'll update the SLF4J web-site so that simple-log is listed as anExcellent. Thanks. If you look at the the *not-yet-released* 1.0beta5 API [1], you willJust from looking at the API for Marker & the associated Logger methods, I can't quite figure what the intended use is. :-[ Could you give me an example of when it would need to be used and how? Second,Name changes don't really bother me, but I don't really like single-letter prefixes in class/interface names. (That's a personal preference.) I think it's misleading in this case because LoggerFactory doesn't implement ILoggerFactory, which might throw a lot of people. (I think EJB people are used to having the interface prefixed with 'I' and the implementation being the same name without the 'I'?) It's all very hard, though, because the terms being used here - 'Factory' and 'Adapter' - are very loaded, and people have certain expectations of classes that have these names. I faced the same problem when I wrote Log Bridge and ended up calling the LoggerFactory equivalent there 'LogBridgeManager'. I think the interface now called ILoggerFactory really is an adapter for the logger factory, so LoggerFactoryAdapter would probably be my preference. I tend to prefer clarity over brevity, where practical. Seeing as it should only be SLF4J implementers who are implementing the interface, I wouldn't consider brevity to be warranted in this situation. In the end, though, I'm not really that concerned what it's called, as long as the javadoc makes it really clear what it is. Another option you could consider would be making ILoggerFactory an inner-interface of LoggerFactory called simply 'Adapter'. Anyway, enough blabbering. I'm really keen to hear back about the Marker. :-) Cheers, Graham. |
_______________________________________________ dev mailing list [email protected] http://slf4j.org/mailman/listinfo/dev
