问题
I can't find out what I modified on my Payara 4.1, that now I can't see logs (log4j2) generated by apps deployed in the Netbeans console, I changed a few logs to System.out.print
or java.util.logging.Logger
so I can see them
`|#]
|#]
|#]
|#]`
I tried to restore some files on domain/domain1/config, like domain.xml, logging.properties but the issue persists.
I remember that enabled some monitoring things related to Healthcheck, I didn't change anything in Logger Settings
Here is a larger piece of the console (of Netbeans 11), in the log files of Payara I can see all the logs, from all levels, the problem is on Netbeans console `
=================================================================
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
Update: I changed to the other domain "payaradomain" didn't work, creating another clean domain neither
2nd update: reinstalling the IDE (removing cache, not importing config) didn't work
回答1:
(sorry, too low rep to comment)
Can you maybe post your logging.properties configuration?
Did you try to create a new domain and test again? I mean when you already replaced domain.xml and logging.properties then what keeps you from creating a new domain?
回答2:
downgraded to Netbeans 11.0 and solved
来源:https://stackoverflow.com/questions/57679272/i-cant-see-logs-from-apps-on-payara-4-1-just-on-netbeans-console-tab