Glassfish-3 JPA Eclipselink上的日志记录级别 [英] Logging Level on Glassfish-3 JPA Eclipselink

查看:120
本文介绍了Glassfish-3 JPA Eclipselink上的日志记录级别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置EAR和Glassfish服务器,使其在开发服务器上显示FINE级别,而在生产机上显示INFO级别的同一只耳朵?

How do I setup a EAR and a Glassfish Server that it shows FINE level on the development server but the same ear shows INFO level on the productive machines?

当我每次部署到生产性机器上时,都要更改persistence.xml中的配置. 但是我忘记了,机器开始充斥日志文件.

In the moment I change config in the persistence.xml every time i deploy onto the productive machines. But s.t. i forget and the machine starts flooding the log files.

推荐答案

您必须输入

    <jvm-options>-Declipselink.logging.level=FINE</jvm-options>

插入开发计算机上的config.xml java-config标记.

into your config.xml java-config tag on your development machine.

也不要将日志记录级别属性放入persistence.xml中.

And do NOT put in the logging level property into the persistence.xml.

这篇关于Glassfish-3 JPA Eclipselink上的日志记录级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆