2017-05-23 41 views
0

如何禁用消息屬性的日誌。我需要調用Web服務的Https並將結果返回,但這些消息在日誌記錄中返回。我根本不被允許顯示這些機密信息。Mule esb禁用調用屬性日誌

感謝

INFO 2017-05-23 15:48:06,950 [[ManulifeMay23].HTTP_Listener_Configuration.worker.01] org.mule.api.processor.LoggerMessageProcessor: 
org.mule.DefaultMuleMessage 
{ 
    id=bdf0b820-3ff0-11e7-b37a-005056a37828 
    payload=java.util.LinkedHashMap 
    correlationId=bdeac4b0-3ff0-11e7-b37a-005056a37828 
    correlationGroup=31 
    correlationSeq=1 
    encoding=UTF-8 
    exceptionPayload=<not set> 
ESPECIALLY this invocation parts 
Message properties: 
    INVOCATION scoped properties: 
    bonusAmount=0 
    bounsCounter=0 
    counter=1 
    cxf_operation=}getBonusPoint 
    cxf_service={}ExternalServerService 
    jsonVariable={selectFields=[programName, registrationDate, cycleToDateAdjustedBonusAmount, totalEarnedRedeemableBonusAmount], **common={accountId=4040320030000877}}** 
    lastFourCC=0877 
    operation=getBonusPoint 
    payload1=[Ljava.lang.Object;@4ea65f0 
    programName= 
    registrationDate= 
    rootMessage=<<<MuleMessage>>> 
    totalAmount=0 
    INBOUND scoped properties: 
    connection=Keep-Alive 
    content-type=application/json 
    date=Tue, 23 May 2017 19:48:06 GMT 
    http.reason=OK 
    http.status=200 
    transfer-encoding=chunked 
    x-archived-client-ip=10.180.205.250 
    x-backside-transport=OK OK,OK OK 
    x-client-ip=10.180.205.250,10.188.196.7 
    x-global-transaction-id=962389919 
    x-response-code=200 
    OUTBOUND scoped properties: 
    MULE_CORRELATION_GROUP_SIZE=31 
    MULE_CORRELATION_ID=bdeac4b0-3ff0-11e7-b37a-005056a37828 
    MULE_CORRELATION_SEQUENCE=1 
    SESSION scoped properties:`enter code here` 
} 

回答

0

這是默認的日誌,如果你不聲明對記錄器的任何值。您可能想要自定義記錄器上的值,以便不會顯示。

+0

林不知道我該怎麼做,是否有一個示例,你可以告訴我。謝謝 –

+0

您可以通過dataweave自定義您的日誌並設置爲有效負載,或者您通常可以添加字符串消息。 ryananthonyandal