我看不到来自 Payara 4.1 上已部署应用程序的日志,只是在 Netbeans 控制台选项卡上看到 |#]

I can't see logs from deployed apps on Payara 4.1, just |#] on Netbeans console tab

我无法在 Netbeans 控制台 中看到部署的应用程序生成的日志 (log4j2) ,我将一些日志更改为 System.out.printjava.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.|#]

`

logging.properties

#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

(抱歉,评论太少)

你可以 post 你的 logging.properties 配置吗?

您是否尝试创建一个新域并再次测试?我的意思是,如果您已经替换了 domain.xml 和 logging.properties,那么是什么阻止您创建新域?

降级到 Netbeans 11.0 并解决