Chris Hostetter schrieb: > Solr is first and foremos an application, run in an application server -- > it interacts with other applications via webservice-ish APIs, which may or > may not even be in Java. From that standpoint, Solr does not fit > Waldhoff's criteria: "If you're building a stand-alone application, don't > use commons-logging"
But Solr will in most cases run together with other applications in a webcontainer. So Solr is not really a stand-alone application in that sense. As other here have pointed out, they have same problems of having to support different logging configurations. The think the basic argument still holds, that when integrating applications Commons-logging is useful. I believe that Solr is never run completely independent of other applications, as it would be rather pointless to have a search server running "stand-alone". Sure you can integrate Solr with other software not even written in java, but still many people will integrate it with other java applications running in the same webcontainer. > JDK logging can be configured in a lot more ways then just a file in > $JAVA_HOME/jre/lib ... i'm not trying to be rude here, but that comment > leads me to believe you understand less about how JDK logging works then i > do about how commons loggign works. Of course your are right, JDK logging can be configured in other ways, what I wanted to point out is that JDK logging is configured per VM which is less flexible than for example Log4J (correct me if I'm wrong). > specificly: JDK logging actually has > all of hte mechanisms in it so that if you wnated to use log4j as the > underlying implementaiton, you could do so by implementing a few classes > and setting a system property at run time -- as i understand it, TomCat > and many other servlet containers already do this, so that applications > they run which use JDK logging get the log configuration from their main > log files. So you are suggesting that I write my own wrapper for the JDK logging, but as I see it this is what Commons-logging is about, having a wrapper to use different logging frameworks. -- Maximilian Hütter blue elephant systems GmbH Wollgrasweg 49 D-70599 Stuttgart Tel : (+49) 0711 - 45 10 17 578 Fax : (+49) 0711 - 45 10 17 573 e-mail : [EMAIL PROTECTED] Sitz : Stuttgart, Amtsgericht Stuttgart, HRB 24106 Geschäftsführer: Joachim Hörnle, Thomas Gentsch, Holger Dietrich