logback在Weblogic 12c中不起作用

时间:2013-08-19 06:07:42

标签: logback openjpa weblogic12c

我的Java EE 6应用程序使用带有logback的slf4j作为日志记录框架。我有openjpa自定义日志记录,它不适用于Weblogic,而之前在glassfish上就可以了(whit openjpa 1.2)。 当我将自定义日志工厂添加到persistence.xml中的“openjpa.log”属性时,weblogic会忽略它并且不起作用。

我的自定义日志工厂:

<property name="openjpa.Log" value="com.kishware.core.log.openjpa.CustomSLF4JLogFactory"/>

忽略属性时,这是weblogic控制台输出:

<Aug 17, 2013 11:29:35 AM GMT+04:30> <Warning> <J2EE> <BEA-160202> <You have specified a openjpa.Log setting in your configuration for persistence unit banco-product#pu-channel-manager. This setting will be ignored and all log messages will be sent to the WebLogic Server logging subsystem. Trace-level logging is controlled by the various JPA-specific debug settings in config.xml, or through the WebLogic Server Administration Console.>

我应该提一下,我正在使用JPA 2.1和Toplink实现。 我很乐意得到一些提示,如何解决这个问题。

1 个答案:

答案 0 :(得分:1)

  

我应该提一下,我正在使用JPA 2.1和Toplink实现

对,你有问题。您正在尝试使用OpenJPA配置属性配置Toplink(我认为您的意思是EclipseLink)。