Hi,
I have a couple of questions wrt to the Message Logging Policy.
I created a policy that will log on Errors, but I am struggling to get any decent info out of the message logs. Below is the policy which I created so far.
So my issues I am getting is the following:
Message Logging Policy
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MessageLogging name="ML-LogPolicy">
<File>
<Message>Error Code: {message.status.code} || Error Content: {error.transport.message} || Error Message: {error.reason.phrase} || {request.header.x-api-key.values} || {request.header.content-type.values}"
"</Message>
<FileName>test2.log</FileName>
<FileRotationOptions rotateFileOnStartup="true">
<FileRotationType>TIME_SIZE</FileRotationType>
<MaxFileSizeInMB>10</MaxFileSizeInMB>
<MaxFilesToRetain>10</MaxFilesToRetain>
<!--RotationFrequency unit="minute">10</RotationFrequency-->
</FileRotationOptions>
</File>
<logLevel>ERROR</logLevel>
</MessageLogging>