[英]Google Eclipse Plugin: Autogenerated files
I just installed the Google plugin for Eclipse and created a new GWT/GAE app using the Web Application Project wizard. 我刚刚安装了Eclipse的Google插件,并使用Web应用程序项目向导创建了一个新的GWT / GAE应用程序 。
Among the plethora of files it generated for me, three caught my eye: 在为我生成的大量文件中,有三个引起了我的注意:
META-INF/jdoconfig.xml
META-INF/persistence.xml
log4j.properties
With regards to the 2 META-INF/*
files, what are these and what purpose do they serve? 关于2个
META-INF/*
文件,这些文件是什么?它们的作用是什么? I can't find any references to them inside the official GAE docs. 我在GAE官方文档中找不到对它们的任何引用。
Also, my understanding was that GAE uses JUL for logging by default, so my plan was to have my application log using SLF4J and then throw slf4j-jdk14
, log4j-over-slf4j.jar
, and jcl-over-slf4j.jar
on the runtime classpath (forcing everything to log using JUL and thus complying with what GAE wants). 另外,我的理解是GAE默认使用JUL进行日志记录,因此我的计划是使用SLF4J记录我的应用程序日志,然后将
slf4j-jdk14
, log4j-over-slf4j.jar
和jcl-over-slf4j.jar
放在运行时类路径(强制所有内容使用JUL进行记录,从而符合GAE的要求)。
Why is this log4j.properties
file even there in the first place? 为什么这个
log4j.properties
文件甚至放在首位? If I place log4j-over-slf4j.jar
on the classpath, am I guaranteed that anything using log4j (and hence being congfigured via this properties file) will eventually be bridged over to JUL? 如果将
log4j-over-slf4j.jar
放在类路径上,是否可以保证使用log4j的任何内容(因此通过此属性文件进行配置)最终都将桥接到JUL? Thanks in advance! 提前致谢!
jdoconfig.xml
is obviously a JDO config file . jdoconfig.xml
显然是一个JDO配置文件 。
persistence.xml
is a JPA config file . persistence.xml
是一个JPA配置文件 。 Thay are both there by default even if you don't use JDO/JPA. 默认情况下,即使您不使用JDO / JPA,Thay都在那儿。
AFAIK, you can not force GAE services to go through SLF4J, but you can combine slf4j and JUL: Using logback-access with Google App Engine (GAE) AFAIK,您不能强制GAE服务通过SLF4J,但是您可以将slf4j和JUL结合使用 : 通过Google App Engine(GAE)使用logback-access
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.