Glassfish logging suddenly stops

倖福魔咒の 提交于 2019-12-13 03:23:01

问题


We're running many instances of glassfish in a linux box and suddenly they stop logging (a blank server.log file is created and no logging data is appended to it).

it happens after something like a week of normal logging.

How can I fix it?

How can I diagnose the problem -there's something like a log of the logger internals :p-?


回答1:


Check the logging properties of your domain (domain-dir/config/logging.properties). If there is nothing logged at all the GFFileHandler logging level might be set to "OFF" (Glassfish-18205 bug).

Try to set it to a different level with CLI:

asadmin set-log-levels com.sun.enterprise.server.logging.GFFileHandler=ALL

This sometimes happens while playing with logging levels in glassfish.



来源:https://stackoverflow.com/questions/9295501/glassfish-logging-suddenly-stops

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!