How to configure Weld-SE logger ?
rpelisse Jul 15, 2013 8:34 AMHi all,
I've turned a CDI WebApp into a command line tool very easily using the weld-se container to do the bootstrap:
WeldContainer weld = new Weld().initialize(); | ||
MyService machineService = weld.instance().select(MyService.class).get(); |
This is awesome and working fine, but Weld logs a LOT of usefull information :
75 [main] INFO org.jboss.weld.Version - WELD-000900 SNAPSHOT
845 [main] INFO org.jboss.weld.Bootstrap - WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
3467 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.bean.BeanDocumentFactory because of underlying class loading error
3497 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.datatype.DatatypeAttribute because of underlying class loading error
3500 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.datatype.DatatypeDocumentFactory because of underlying class loading error
3501 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.datatype.DatatypeElement because of underlying class loading error
3502 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.datatype.DatatypeElementFactory because of underlying class loading error
3503 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.datatype.NamedTypeResolver because of underlying class loading error
3504 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.datatype.SchemaParser because of underlying class loading error
3507 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.DocumentFactory because of underlying class loading error
3509 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.DocumentHelper because of underlying class loading error
3523 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.dom.DOMDocumentFactory because of underlying class loading error
3708 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.io.XPP3Reader because of underlying class loading error
3709 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.io.XPPReader because of underlying class loading error
3729 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.rule.Stylesheet because of underlying class loading error
3775 [main] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.dom4j.swing.XMLTableDefinition because of underlying class loading error
...
I've googled around, but I failed to find how I could configure this logger... I've tried adding the logging.properties (java util logging), but does not appears to be picked up. I also added log4j as a dependency and added the log4j.xml, but same thing, even with an invalid XML file, Weld-SE seems to ignore this file aslo...