websphereibm-mobilefirstwebsphere-libertylogfileserver.xml

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


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.


Solution

  • 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" />