如何增加WAS自由服务器messages.log文件的大小? [英] how to increase WAS liberty server messages.log file size?

查看:134
本文介绍了如何增加WAS自由服务器messages.log文件的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天,

我在WAS自由配置文件中部署了mobilefirst应用程序.我发现messages.log只有72kb,然后它将滚动到新的日志文件.

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.

我想增加日志文件的大小,因此我在server.xml中执行以下方法,但是它没有生效:

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

<logging maxFileSize="0"/>

我可以知道如何增加日志文件的大小吗?我的WAS自由档案是v8.5.5.5.请告知.

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

推荐答案

此处描述了WAS Liberty日志记录配置: https://www. ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/rwlp_logging.html

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

可以将日志记录系统配置为运行滚动文件集,其中maxFiles指定的文件数和m​​axFileSize指定的MB文件大小.

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.

因此,例如,此配置将导致一个日志文件集,其中包含10个文件,每个文件最大1 GB

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

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

这篇关于如何增加WAS自由服务器messages.log文件的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆