-2

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

<!-- Enable features -->
<featureManager>
    <feature>localConnector-1.0</feature>
    <feature>webProfile-7.0</feature>
</featureManager>

// 获取服务器位置

// 文件名

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

4

1 回答 1

0

日志文件的保留时间可以根据文件数(maxFiles您已经配置)而不是天数进行配置。鉴于您提到您目前看到的文件保留了大约 1 天,一个近似值maxFiles将从 4 增加到 20。如果这还不够,并且您需要正好 5 天,那么您可以打开一个此处针对 Open Liberty 的功能请求: https ://github.com/OpenLiberty/open-liberty/issues/new/choose

于 2020-03-10T18:40:28.203 回答