how to increase WAS liberty server messages.log file size?

匆匆过客 提交于 2020-05-17 05:43:26

问题


Good day,

I have a mobilefirst app deploy in WAS liberty profile. I found that the messages.log is only 72kb and then it will roll to new log file.

I would like to increase the log file size, so I am doing the following way in server.xml, but it does not take effect:

<logging traceFileName="messages.log" maxFileSize="20" />

or

<logging maxFileSize="0"/>

May I know how to increase the log file size? My WAS liberty profile is v8.5.5.5. Kindly advise.


回答1:


WAS Liberty logging configuration is described here: https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/rwlp_logging.html

The logging system can be configured to operate a rolling fileset, with the number of files specified by maxFiles and the file size in MB specified by maxFileSize.

So for example, this config will result in a logging fileset of 10 files each up to 1 GB

<logging maxFileSize="1024" maxFiles="10" />



来源:https://stackoverflow.com/questions/61522130/how-to-increase-was-liberty-server-messages-log-file-size

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