[JBoss Tools] - Re: Use Log4j logging instead of apache commons logging

Denis Golovin <[email protected]>
Newsgroups gmane.comp.java.jboss.user
Message-ID <[email protected]>
Denis Golovin [https://community.jboss.org/people/dgolovin] created the discussion

"Re: Use Log4j logging instead of apache commons logging"

To view the discussion, visit: https://community.jboss.org/message/829186#829186

--------------------------------------------------------------
Considering what is stated in apache common logging documentation:
> The commons-logging.jar file includes the JCL API, the default LogFactory implementation and thin-wrapper Log implementations for  http://logging.apache.org/log4j/docs/index.html Log4J,  http://avalon.apache.org/logkit/index.html Avalon LogKit, the Avalon Framework's logging infrastructure, JDK 1.4, as well as an implementation of JDK 1.4 logging APIs (JSR-47) for pre-1.4 systems.
> In most cases, including commons-logging.jar and your preferred logging implementation in the classpath should be all that is required to use JCL.
> 
you probably do not need to change anything, because generated classes should youse log4j through common logging interface. If you need do use log4j classes directly, then there is a workaround for that, which includes:
1. Copying dao/daohome.ftl template from hibernate-tools.jar to ${externalfolder}
2. Change it to your needs
3. Configure template location property for exporter in Hibernate Coge Generatiion Configuration dialog and point it to ${externalfolder} which contans dao/daohome.ftl file in it
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/829186#829186]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.