0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Liberty始動時にmessages.logとtrace.logをローテートしない方法

Last updated at Posted at 2025-07-24

デフォルトでは、Liberty始動時に古いmessages.logとtrace.logファイルはローテートされます。
bootstrap.propertiesファイルに com.ibm.ws.logging.newLogsOnStart=false を設定すると、始動時にローテートされず、古いファイルに追記されます。

参考文書

  • Log and trace configuration :: Open Liberty Docs
    com.ibm.ws.logging.newLogsOnStart
    If this setting is set to true when Open Liberty starts, any existing messages.log or trace.log files are rolled over and logging writes to a new messages.log or trace.log file. If this setting is set to false, messages.log or trace.log files only refresh when they hit the size that is specified by the maxFileSize attribute. The default value is true. This setting cannot be provided using the logging element in the server.xml file because it is only processed during server bootstrap.

  • Maximise log history on Open Liberty in production - OpenLiberty.io.
    You can disable this default behaviour in production by adding the new option com.ibm.ws.logging.newLogsOnStart=false on a separate line in a bootstrap.properties file

  • IBM WebSphere Application Server Performance Cookbook - WebSphere Liberty
    On server startup, any old messages.log is first rotated (unless the bootstrap property com.ibm.ws.logging.newLogsOnStart=false is set).

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?