Java slf4j Logger error(Logger logger, Exception e)

Here you can find the source of error(Logger logger, Exception e)

Description

error

License

Open Source License

Declaration

public static void error(Logger logger, Exception e) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import org.slf4j.Logger;

public class Main {
    public static void error(Logger logger, String msg, Object... objects) {
        logger.error(msg, objects);/*from  w  w w . java  2  s.com*/
    }

    public static void error(Logger logger, Exception e) {
        logger.error(e.getMessage(), e);
    }
}

Related

  1. displayProperties(Logger log, Properties prop)
  2. dumpConfiguration(Map map, Logger log)
  3. error(Class clz, String logStr, Throwable e)
  4. error(final BundleContext b, final String msg, final Throwable t)
  5. error(Logger log, String fmt, String... args)
  6. error(String errorMessage, Throwable e)
  7. error(String msg, Throwable e)
  8. ExecptionLog(Logger log, String msg, Throwable e)
  9. extractValue(String var)