How to change log4j logging on EC2 agents

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

To debug EC2 agent issues we sometimes need to extra debug classes to its normal log or change the level of logging to some existing classes

ソリューション

Perform any needed change in the log4j of the Bamboo server and those changes will be replicated in the EC2 agent

  1. Edit the file 
    1. For Bamboo versions prior 9: <Bamboo_Install>/atlassian-bamboo/WEB-INF/classes/log4j.properties adding the needed classes or changing the log level from the existing ones

    2. For Bamboo version 9 and above: <Bamboo_Install>/atlassian-bamboo/WEB-INF/classes/log4j2.properties adding the needed classes or changing the log level from the existing ones

  2. Restart the server
  3. Restart the EC2 agents


(warning) The EC2 log4j.properties copy can be found at <EC2_Agent_Home>/classpath/bamboo-additional-config.jar 


最終更新日 2022 年 8 月 19 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.