5. Monitoring, Logging and Statistics

log

The log feature logs request and response messages to the log4j framework. The messages will appear either on the console or in a log file depending on the configuration of the conf/log4j2.xml file.

Can be used in:

serviceProxy, api, stompProxy, swaggerProxy, if, registration, wsStompReassembler, interceptor, bean, internalProxy, 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
headerOnly false true
If set to true only the HTTP header will be logged. -
level false INFO
Sets the log level. WARN
category false com.predic8.membrane.core.interceptor.LogInterceptor
Sets the category of the logged message. Membrane