Package org.sklsft.commons.log
Class AccessLogger
java.lang.Object
org.sklsft.commons.log.AccessLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlogInterfaceAnswer(String interfaceName, RequestChannels interfaceChannel, Object receivedBody, Long responseTimeMillis, String responseStatus, String responseLabel) Used to log a response received as a clientvoidlogInterfaceCall(String interfaceName, RequestChannels interfaceChannel, Object sentBody) Used to log a request sent as a clientvoidlogRequest(String transactionType, Object requestBody) Used to log a request received as a backendvoidlogResponse(String transactionType, Object responseBody, Long responseTimeMillis, String responseStatus, String responseLabel) Used to log a response sent as a backend
-
Constructor Details
-
AccessLogger
public AccessLogger(org.sklsft.commons.text.serialization.Serializer serializer)
-
-
Method Details
-
logRequest
Used to log a request received as a backend -
logResponse
public void logResponse(String transactionType, Object responseBody, Long responseTimeMillis, String responseStatus, String responseLabel) Used to log a response sent as a backend -
logInterfaceCall
public void logInterfaceCall(String interfaceName, RequestChannels interfaceChannel, Object sentBody) Used to log a request sent as a client -
logInterfaceAnswer
public void logInterfaceAnswer(String interfaceName, RequestChannels interfaceChannel, Object receivedBody, Long responseTimeMillis, String responseStatus, String responseLabel) Used to log a response received as a client
-