Package nablarch.core.log.app
Class JsonLogFormatterSupport
java.lang.Object
nablarch.core.log.app.JsonLogFormatterSupport
各種ログのJSONフォーマットを支援するクラスです。
-
Constructor Summary
ConstructorsConstructorDescriptionJsonLogFormatterSupport(JsonSerializationManager serializationManager, JsonSerializationSettings settings) コンストラクタ。 -
Method Summary
Modifier and TypeMethodDescription構造化されたmessageを生成する。<CTX> StringgetStructuredMessage(List<JsonLogObjectBuilder<CTX>> builders, CTX context) 構造化されたmessageを生成する。
-
Constructor Details
-
JsonLogFormatterSupport
public JsonLogFormatterSupport(JsonSerializationManager serializationManager, JsonSerializationSettings settings) コンストラクタ。- Parameters:
serializationManager-JsonSerializationManagerの実装オブジェクトsettings- Jsonのシリアライズに関する設定
-
-
Method Details
-
getStructuredMessage
構造化されたmessageを生成する。- Parameters:
builders- 出力項目のビルダーcontext- 構造化するコンテキスト- Returns:
- 生成したmessage
-
getStructuredMessage
構造化されたmessageを生成する。- Parameters:
o- 構造化対象のオブジェクト- Returns:
- 生成したmessage
-