變更循環日誌檔的數目限制

GlassFish Server 循環日誌檔時,會建立名為 server.log 的全新空白檔案,並將舊檔案重新命名為 server.log_date,其中 date 是檔案循環的日期和時間。

依照預設,GlassFish Server 會將循環的日誌檔數目限制為 10。 達到此限制時,最舊的日誌檔會在 GlassFish Server 下次循環日誌檔時加以刪除。

如有必要,您可以變更循環日誌檔的數目限制。您設定的任何新限制都會套用到存取記錄日誌和伺服器日誌循環日誌檔。

  1. com.sun.enterprise.server.logging.max_history_files 系統特性設定為要保留的最大循環日誌檔數目。

    如需有關如何設定系統特性的資訊,請參閱管理系統特性

    com.sun.enterprise.server.logging.max_history_files 系統特性的運作方式如下:

另請參閱
Copyright © 2005, 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices