+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/log4j.properties file.

Can be used in

spring:beans, if, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy and transport

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

Copyright © 2008-2017 predic8 GmbH
Koblenzerstr. 65, 53173 Bonn, Tel. +49 (228) 555 25 76-0