Function convertMotionMasterMessageToLoggerContext
- convertMotionMasterMessageToLoggerContext(motionMasterMessage: IMotionMasterMessage, namespace?: string): {
motionMasterMessage: IMotionMasterMessage;
name: string;
namespace: string;
type: string;
}
-
Parameters
-
-
namespace: string = 'reqResMessage'
Returns {
motionMasterMessage: IMotionMasterMessage;
name: string;
namespace: string;
type: string;
}
-
-
name: string
-
namespace: string
-
type: string
Converts a
IMotionMasterMessageinto a structured context object suitable for logging.The resulting object includes:
namespace: a string identifying the logging context (default:'reqResMessage'),motionMasterMessage: the original message,type: either'request'or'status'depending on the message content,name: a comma-separated string of the keys in the request or status object.Returns
An object containing the logging context with type, name, namespace, and original message.
Example
Remarks
requestorstatusin the message.