In many places in the code I see non-static log instances being created, using "LogFactory.getLog(getClass())". The usage pattern I've seen in the past is to create a static log instance for the class, since AFAIK the logging options will be the same for all instances of a class and the creation of a separate log instance for each instance of the class represents unnecessary overhead. Is this log-per-class-instance approach a deliberate change in Axis2, or should static log instances be used?

 - Dennis

--
Dennis M. Sosnoski
SOA, Web Services, and XML
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117

Reply via email to