Ich habe Endpunkt Klasse:Frühling Web Services 1.5.2 keine Ausnahme loggin auf Protokolldatei (Backlog, Federverschluß 1.5.2)
@Endpoint
public class GetCustomerEndpoint {
public static final Logger log = LoggerFactory.getLogger(GetCustomerEndpoint .class);
@Transactional(value = "transactionManager", readOnly = true)
@PayloadRoot(namespace = WebServiceConfig.NAMESPACE_URI, localPart = "getCustomerRequest")
@ResponsePayload
public GetCustomerResponse getCustomer(@RequestPayload GetCustomerRequest serviceRequest)
throws ServerFaultException, ClientFaultException, Exception {
throw new Exception("Exception to log file");
}
Aber wenn Ausnahme wirft es zeigt in Client-Seite:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring xml:lang="en">Exception to log file</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
In Protokolldateien oder Konsole ist leer. Ich möchte alle Ausnahmen an beiden Orten sehen, und auch die Stack-Trace-Verfolgung.
In meinem Log-config:
logging.level.org.springframework=INFO
Versuchen Sie, eine weitere Protokollkonfiguration zum GetCustomerEndpoint-Paket hinzuzufügen: logging.level. = INFO –
Danke dir ....! – user2625402