Java slf4j Logger printResponseLog(String res)

Here you can find the source of printResponseLog(String res)

Description

print Response Log

License

Open Source License

Declaration

public static void printResponseLog(String res) 

Method Source Code

//package com.java2s;
/**//from  w w w . j  a  va  2 s.c  o  m
 *
 * Licensed Property to China UnionPay Co., Ltd.
 * 
 * (C) Copyright of China UnionPay Co., Ltd. 2010
 *     All Rights Reserved.
 *
 * 
 * Modification History:
 * =============================================================================
 *   Author         Date          Description
 *   ------------ ---------- ---------------------------------------------------
 *   xshu       2014-05-28       ?????????
 * =============================================================================
 */

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Main {
    private final static Logger GATELOG_MESSAGE = LoggerFactory.getLogger("SDK_MSG_LOG");
    final static String LOG_STRING_RSP_MSG_BEGIN = "============================== SDK RSP MSG BEGIN ==============================";
    final static String LOG_STRING_RSP_MSG_END = "==============================  SDK RSP MSG END  ==============================";

    public static void printResponseLog(String res) {
        writeMessage(LOG_STRING_RSP_MSG_BEGIN);
        writeMessage(res);
        writeMessage(LOG_STRING_RSP_MSG_END);
    }

    public static void writeMessage(String msg) {
        GATELOG_MESSAGE.info(msg);
    }
}

Related

  1. notNull(String message, Object obj)
  2. parsePortNumber(String port, int defaultPort)
  3. printInfoLog(Class cla, String message)
  4. printPrettyJson(Logger logger, String json)
  5. printRequestLog(Map reqParam)
  6. printStackTrace(Logger logger, Throwable e)
  7. profilerTrigger2(Logger log, String msg)
  8. putMDCs(String clientId, String subjectId)
  9. request(String infoMessage)