Java slf4j Logger writeErrorLog(String cont)

Here you can find the source of writeErrorLog(String cont)

Description

write Error Log

License

Open Source License

Declaration

public static void writeErrorLog(String cont) 

Method Source Code

//package com.java2s;
/**/*from   w w  w. ja v a  2s .  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_ERROR = LoggerFactory.getLogger("SDK_ERR_LOG");

    public static void writeErrorLog(String cont) {
        GATELOG_ERROR.error(cont);
    }

    public static void writeErrorLog(String cont, Throwable ex) {
        GATELOG_ERROR.error(cont, ex);
    }
}

Related

  1. warn(String message)
  2. warn(String msg)
  3. warn(String msg)
  4. warnOrDebug(Logger logger, String msg)
  5. wrapWithMDC(Runnable r)