5. Monitoring, Logging and Statistics

log

The log feature logs request and response messages. The messages will appear either on the console or in a log file depending on the log configuration.

Can be used in:

serviceProxy, api, for, choose, stompProxy, if, registration, wsStompReassembler, internal, interceptor, bean, transport and soapProxy

Syntax

<log headerOnly="[false,true]" category="[string]" level="[TRACE,DEBUG,INFO,WARN,ERROR,FATAL]" />

Sample

<serviceProxy port="2000">
  <request>
	<log />
  </request>
  <target host="www.predic8.de" />
</serviceProxy>

Attributes

NameRequiredDefaultDescriptionExample
level false INFO
Sets the log level. WARN
language false groovy
the language of the 'test' condition SpEL, groovy, jsonpath, xpath
label false ""
Label to find the entry in the log "After Transformation"
body false true
To turn off logging of message bodies set this attribute to false -
category false com.predic8.membrane.core.interceptor.log.LogInterceptor
Sets the category of the logged message. Membrane
message false - - -