I use the Eclipselink JPA provider, and noticed that it only writes in the console. I have configured both console and file applications, but EclipseLink log entries (such as SQL queries) appear only in the console log. How to fix it?
Here is my log4j configuration:
log4j.rootLogger=ALL, FILE, CONSOLE log4j.logger.uk.co.mycompany=DEBUG log4j.logger.org.eclipse.persistence=ALL log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender log4j.appender.FILE.File=${catalina.base}/logs/application.log log4j.appender.FILE.layout=org.apache.log4j.PatternLayout log4j.appender.FILE.layout.ConversionPattern=%d{HH:mm:ss, SSS} %t [%p] %c{1} - %m%n
In the persistence.xml file:
... <properties> <property name="eclipselink.logging.level" value="FINE"/> </properties>
source share