Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ログをJSON形式で出力するよう修正 #1901

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

kenjiyoshid-a
Copy link
Contributor

@kenjiyoshid-a kenjiyoshid-a commented Jan 23, 2025

この Pull request で実施したこと

  • Spring Boot v3.4.0 から追加された機能を使用して、構造化ログのフォーマットを各エントリーポイントの application.properties を指定し、 log4j2-spring.xml で読み込むように変更しました。
  • system-common にログを JSON 形式で出力するための抽象クラス(AbstractStructuredLogger)を配置しました。
  • 各エントリーポイントにデフォルトで構造化ログに含める値を指定する機能を持つ、抽象クラス(AbstractStructuredLogger)の実装クラスを配置しました。
  • 上記の変更に際して、ロガーを使用しているクラスの修正を行いました。
  • Dressca の web に配置されている log4j2.xml を適切な場所に再配置しました。

この Pull request では実施していないこと

ドキュメントへの追記は行っていません。

Issues や Discussions 、関連する Web サイトなどへのリンク

@kenjiyoshid-a kenjiyoshid-a self-assigned this Jan 23, 2025
@kenjiyoshid-a kenjiyoshid-a added this to the v1.1.0 milestone Jan 23, 2025
@kenjiyoshid-a kenjiyoshid-a added target: Dressca サンプルアプリケーションDresscaに関係がある target: Azure AD B2C Auth Azure AD B2C認証の要件別サンプル(コード)に関係がある labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target: Azure AD B2C Auth Azure AD B2C認証の要件別サンプル(コード)に関係がある target: Dressca サンプルアプリケーションDresscaに関係がある
Projects
None yet
Development

Successfully merging this pull request may close these issues.

webに配置されているlog4j2.xmlを適切な場所に配置する ログをJSON形式で出力したい
1 participant