public class MyLoggingUtils extends Object
Constructor and Description |
---|
MyLoggingUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
logRequest(org.slf4j.Logger logger,
org.apache.commons.httpclient.methods.RequestEntity requestEntity)
Logs a request ni raw XML form.
|
static void |
logRequest(org.slf4j.Logger logger,
String content)
Convenience method to nicely log XML contents for request.
|
static String |
logResponse(org.slf4j.Logger logger,
InputStream stream)
This method logs XML from streams and nicely formats the output.
|
static void |
logResponse(org.slf4j.Logger logger,
String content)
Convenience method to nicely log responses.
|
public static void logRequest(org.slf4j.Logger logger, org.apache.commons.httpclient.methods.RequestEntity requestEntity) throws org.apache.xmlrpc.XmlRpcException
logger
- Logger to be usedrequestEntity
- org.apache.xmlrpc.XmlRpcException
public static void logRequest(org.slf4j.Logger logger, String content)
logger
- content
- XML content to be logged.public static String logResponse(org.slf4j.Logger logger, InputStream stream) throws org.apache.xmlrpc.XmlRpcException
logger
- stream
- Incoming stream.org.apache.xmlrpc.XmlRpcException
public static void logResponse(org.slf4j.Logger logger, String content)
logger
- content
- String XML content to be logged.Copyright © 2004-2015. All Rights Reserved.