On Monday, May 23, 2011 2:49:11 AM meteora28 wrote:
> I already set the loggerClass wo Log4J, but there is still some output in
> red which will not be written to Log4J. This always happens while creating
> a service. For example:
> 
> This is what I already do:
> 
> LogUtils.setLoggerClass(org.apache.cxf.common.logging.Log4jLogger.class);

This should work, but it has to be VERY VERY early in your app startup.   If 
ANY CXF classes are referenced before that line, it's likely not going to work 
properly.   If you can put that in a static block in the class that has your 
main method, that may work best.

Dan




> 
> And while executing this line:
> 
> Service service = factory.create(Service.class);
> 
> There is always an output in red like this:
> 
> 23.05.2011 08:41:06
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service {<URL>}Service from class <Package>
> 
> Does anybody know how to set this output also to Log4J or to hide this?
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Red-logging-output-to-Log4J-tp4418270p4418
> 270.html Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to