我看不到由部署在 Netbeans 控制台中的应用程序生成的日志 (log4j2) ,我将一些日志更改为System.out.print
或者java.util.logging.Logger
我可以看到它们
`|#]
|#]
|#]
|#]`
我尝试恢复 domain/domain1/config 上的一些文件,例如 domain.xml、logging.properties,但问题仍然存在。
这是控制台的较大部分(Netbeans 11),在 Payara 的日志文件中,我可以看到所有日志,从各个级别,问题出在 Netbeans 控制台上
=================================================================
Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
To show debug window, add ?debug to your application URL.
=================================================================|#]
|#]
|#]
|#]
|#]
EclipseLink, version: Eclipse Persistence Services - 2.6.4.qualifier|#]
/file:/D:/NetBeansProjects/Traslado/target/Traslado-1/WEB-INF/classes/_trasladoPU login successful|#]
|#]
|#]
Listening to REST requests at context: /management/domain.|#]
Redirecting to /index.jsf|#]
Admin Console: Initializing Session Attributes...|#]
Payara Health Check Service is shutdown.|#]
`
日志记录属性
#GlassFish logging.properties list
#Tue Aug 27 14:14:03 ART 2019
javax.enterprise.resource.webcontainer.jsf.facelets.level=INFO
org.eclipse.persistence.session.level=INFO
javax.enterprise.system.container.cmp.level=INFO
handlers=java.util.logging.ConsoleHandler
java.util.logging.FileHandler.count=1
org.glassfish.naming.level=INFO
javax.enterprise.system.container.ejb.level=INFO
javax.enterprise.resource.jta.level=INFO
javax.enterprise.resource.jdo.level=INFO
javax.level=INFO
javax.enterprise.resource.resourceadapter.level=INFO
com.sun.enterprise.server.logging.SyslogHandler.useSystemLogging=false
com.sun.enterprise.server.logging.GFFileHandler.logtoConsole=false
javax.enterprise.resource.webcontainer.jsf.managedbean.level=INFO
java.util.logging.ConsoleHandler.formatter=com.sun.enterprise.server.logging.UniformLogFormatter
javax.enterprise.system.core.config.level=INFO
javax.org.glassfish.persistence.level=INFO
javax.enterprise.system.level=INFO
org.jvnet.hk2.osgiadapter.level=INFO
ShoalLogger.level=CONFIG
java.util.logging.FileHandler.limit=50000
javax.enterprise.system.container.web.level=INFO
javax.enterprise.resource.javamail.level=INFO
javax.enterprise.system.core.classloading.level=INFO
javax.enterprise.system.webservices.registry.level=INFO
javax.enterprise.resource.webcontainer.jsf.renderkit.level=INFO
javax.enterprise.resource.corba.level=INFO
javax.enterprise.system.core.level=INFO
javax.enterprise.resource.webcontainer.jsf.taglib.level=INFO
com.sun.enterprise.server.logging.GFFileHandler.maxHistoryFiles=0
javax.enterprise.system.webservices.saaj.level=INFO
com.sun.enterprise.server.logging.GFFileHandler.excludeFields=
javax.enterprise.system.tools.deployment.level=INFO
com.sun.enterprise.server.logging.GFFileHandler.file=${com.sun.aas.instanceRoot}/logs/server.log
java.util.logging.FileHandler.pattern=%h/java%u.log
com.sun.enterprise.server.logging.GFFileHandler.rotationOnDateChange=false
org.glassfish.admingui.level=INFO
javax.enterprise.resource.sqltrace.level=FINE
com.sun.enterprise.server.logging.GFFileHandler.formatter=com.sun.enterprise.server.logging.ODLLogFormatter
javax.enterprise.system.core.selfmanagement.level=INFO
javax.enterprise.resource.jms.level=INFO
javax.enterprise.system.core.security.level=INFO
com.sun.enterprise.server.logging.GFFileHandler.multiLineMode=true
com.sun.enterprise.server.logging.GFFileHandler.level=ALL
javax.enterprise.system.container.ejb.mdb.level=INFO
javax.enterprise.system.core.transaction.level=INFO
org.apache.coyote.level=INFO
javax.enterprise.resource.webcontainer.jsf.timing.level=INFO
com.sun.enterprise.server.logging.GFFileHandler.compressOnRotation=false
log4j.logger.org.hibernate.validator.util.Version=warn
javax.mail.level=INFO
javax.enterprise.resource.webcontainer.jsf.application.level=INFO
javax.enterprise.resource.webcontainer.jsf.lifecycle.level=INFO
javax.enterprise.system.ssl.security.level=INFO
javax.enterprise.resource.webcontainer.jsf.context.level=INFO
java.util.logging.ConsoleHandler.level=FINEST
handlerServices=com.sun.enterprise.server.logging.GFFileHandler,com.sun.enterprise.server.logging.SyslogHandler
javax.enterprise.system.util.level=INFO
javax.enterprise.resource.webcontainer.jsf.resource.level=INFO
com.sun.enterprise.server.logging.GFFileHandler.rotationTimelimitInMinutes=0
org.apache.jasper.level=INFO
javax.enterprise.system.tools.deployment.dol.level=WARNING
javax.enterprise.resource.webcontainer.jsf.config.level=INFO
javax.enterprise.system.tools.admin.level=INFO
org.apache.catalina.level=INFO
javax.enterprise.system.tools.backup.level=INFO
com.sun.enterprise.server.logging.GFFileHandler.rotationLimitInBytes=2000000
.level=INFO
javax.enterprise.system.tools.deployment.common.level=WARNING
com.sun.enterprise.server.logging.SyslogHandler.level=ALL
java.util.logging.FileHandler.formatter=java.util.logging.XMLFormatter
com.sun.enterprise.server.logging.GFFileHandler.retainErrorsStasticsForHours=0
com.sun.enterprise.server.logging.GFFileHandler.flushFrequency=1
javax.enterprise.system.webservices.rpc.level=INFO
更新:我更改为另一个域“payaradomain”不起作用,也没有创建另一个干净的域
第二次更新:重新安装 IDE(删除缓存,不导入配置)不起作用
有一个未解决的未解决问题 jira-report