Go to new doc!

+49 228 5552576-0


info@predic8.com

log

Description

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

spring:beans, api, bean, if, interceptor, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler

Syntax

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

Sample

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

Attributes

Name Required Default Description Example
category false com.predic8.membrane.core.interceptor.LogInterceptor Sets the category of the logged message. Membrane
headerOnly false true If set to true only the HTTP header will be logged.
level false INFO Sets the log level. WARN