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の起動のたびにconsole.logのファイル名を変更する方法

Posted at

[ロギングおよびトレース - IBM Documentation]
( https://www.ibm.com/docs/ja/was-liberty/base?topic=liberty-logging-trace )

console.log ファイルは、サーバーが再始動されるとリセットされます。

リセットされないように、起動のたびに異なるファイル名にするには、
server.envファイルに # enable_variable_expansion というコメント行を追加して、たとえば以下のように設定します。

# enable_variable_expansion
LOG_FILE=console_$(date +%y-%m-%d_%H-%M-%S).log

console_25-05-27_20-35-48.log といった形式でファイルが作成されます。

enable_variable_expansion は22.0.0.1から使用可能です。

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?