Package nablarch.fw.messaging.logging
Class MessagingJsonLogFormatter
java.lang.Object
nablarch.fw.messaging.logging.MessagingLogFormatter
nablarch.fw.messaging.logging.MessagingJsonLogFormatter
メッセージ送受信処理の中で出力するためのログをJSON形式でフォーマットするクラス。
- Author:
- Shuji Kitamura
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class出力項目(関連メッセージID)を処理するクラス。static class出力項目(宛先キュー名)を処理するクラス。static classラベルを処理するクラス。static class出力項目(メッセージボディ内容)を処理するクラス。static class出力項目(メッセージボディ内容)を処理するクラス。static class出力項目(メッセージボディバイト長)を処理するクラス。static class出力項目(メッセージヘッダ)を処理するクラス。static class出力項目(メッセージID)を処理するクラス。static class出力項目(応答宛先キュー名)を処理するクラス。static class出力項目(スレッド名)を処理するクラス。static class出力項目(メッセージ有効期間)を処理するクラス。Nested classes/interfaces inherited from class nablarch.fw.messaging.logging.MessagingLogFormatter
MessagingLogFormatter.CorrelationId, MessagingLogFormatter.Destination, MessagingLogFormatter.MessageBody, MessagingLogFormatter.MessageBodyHex, MessagingLogFormatter.MessageBodyLength, MessagingLogFormatter.MessageHeader, MessagingLogFormatter.MessageId, MessagingLogFormatter.MessagingLogContext, MessagingLogFormatter.ReplyTo, MessagingLogFormatter.ThreadName, MessagingLogFormatter.TimeToLive -
Field Summary
Fields inherited from class nablarch.fw.messaging.logging.MessagingLogFormatter
PROPS_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JsonSerializationManager変換処理に使用するJsonSerializationManagerを生成する。getHttpReceivedMessageLog(ReceivedMessage message, Charset charset) 同期送信処理開始時に出力されるログ文字列を生成する。getHttpSentMessageLog(SendingMessage message, Charset charset) 同期送信処理開始時に出力されるログ文字列を生成する。getObjectBuilders(Map<String, String> props) フォーマット対象のログ出力項目を取得する。getReceivedMessageLog(ReceivedMessage message) 同期送信処理開始時に出力されるログ文字列を生成する。getSentMessageLog(SendingMessage message) 同期送信処理開始時に出力されるログ文字列を生成する。protected voidinitialize(Map<String, String> props) 初期化。 フォーマット済みのログ出力項目を初期化する。Methods inherited from class nablarch.fw.messaging.logging.MessagingLogFormatter
getBodyMaskingPatterns, getFormattedLogItems, getLogItems, getMaskingChar, getProp
-
Constructor Details
-
MessagingJsonLogFormatter
public MessagingJsonLogFormatter()コンストラクタ。
-
-
Method Details
-
initialize
初期化。 フォーマット済みのログ出力項目を初期化する。- Parameters:
props- 各種ログ出力の設定情報
-
createSerializationManager
変換処理に使用するJsonSerializationManagerを生成する。- Parameters:
settings- 各種ログ出力の設定情報- Returns:
JsonSerializationManager
-
getObjectBuilders
protected Map<String,JsonLogObjectBuilder<MessagingLogFormatter.MessagingLogContext>> getObjectBuilders(Map<String, String> props) フォーマット対象のログ出力項目を取得する。- Parameters:
props- 各種ログ出力の設定情報- Returns:
- フォーマット対象のログ出力項目
-
getSentMessageLog
同期送信処理開始時に出力されるログ文字列を生成する。- Overrides:
getSentMessageLogin classMessagingLogFormatter- Parameters:
message- 電文オブジェクト- Returns:
- ログ文字列
-
getReceivedMessageLog
同期送信処理開始時に出力されるログ文字列を生成する。- Overrides:
getReceivedMessageLogin classMessagingLogFormatter- Parameters:
message- 電文オブジェクト- Returns:
- ログ文字列
-
getHttpSentMessageLog
同期送信処理開始時に出力されるログ文字列を生成する。- Overrides:
getHttpSentMessageLogin classMessagingLogFormatter- Parameters:
message- 電文オブジェクトcharset- 出力に使用する文字セット- Returns:
- ログ文字列
-
getHttpReceivedMessageLog
同期送信処理開始時に出力されるログ文字列を生成する。- Overrides:
getHttpReceivedMessageLogin classMessagingLogFormatter- Parameters:
message- 電文オブジェクトcharset- 出力に使用する文字セット- Returns:
- ログ文字列
-