如何更改websphere中日志文件的保留期?

如何更改websphere中日志文件的保留期?,websphere,server.xml,Websphere,Server.xml,如何将日志文件的保留期从1天更改为5天 //将获取服务器位置 //文件名 <!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" --> <httpEndpoint id="defaultHttpEndpoint" httpPort="9077" httpsPort="94710" /> <varia

如何将日志文件的保留期从1天更改为5天

//将获取服务器位置

//文件名

<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
<httpEndpoint id="defaultHttpEndpoint" httpPort="9077" httpsPort="94710" />
<variable name="defaultHostName" value="000001" />

<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true"/>
<enterpriseApplication id="Tiii.ear" location="Tiii.ear" name="Tiii_EAR"/>
<logging maxFileSize="20" maxFiles="4" copySystemStreams="false"/>

日志文件保留的时间可以配置为已配置的文件数maxFiles,而不是天数。如果您提到您当前看到的文件保留了大约1天,那么近似的做法是将maxFiles从4增加到20。如果这还不够,并且您有整整5天的要求,那么您可以在此处针对open Liberty打开一个功能请求:

你好,罗比尼奥,欢迎来到SO。我编辑了你问题的标题,以便更好地反映你的问题。我们鼓励使用有意义的标题,帮助其他人更容易地找到答案并提供帮助。
<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
<httpEndpoint id="defaultHttpEndpoint" httpPort="9077" httpsPort="94710" />
<variable name="defaultHostName" value="000001" />

<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true"/>
<enterpriseApplication id="Tiii.ear" location="Tiii.ear" name="Tiii_EAR"/>
<logging maxFileSize="20" maxFiles="4" copySystemStreams="false"/>