Java slf4j Logger debug(Logger logger, Exception e)

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

Description

debug

License

Open Source License

Declaration

public static void debug(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 debug(Logger logger, String msg) {
        if (logger.isDebugEnabled()) {
            logger.debug(msg);// w w  w . j  av  a 2s. co m
        }
    }

    public static void debug(Logger logger, Exception e) {
        if (logger.isDebugEnabled()) {
            logger.debug(e.getMessage(), e);
        }
    }

    public static void debug(Logger logger, String msg, Object... objects) {
        if (logger.isDebugEnabled()) {
            logger.debug(msg, objects);
        }
    }
}

Related

  1. configureXWikiLogs()
  2. configureXWikiLogs()
  3. countMSCandidates(byte[] byteARR)
  4. countMSCandidates_m2(ArrayList asHexAL)
  5. d d(String fmt, Object... args)
  6. debug(Logger logger, String format, Object... arguments)
  7. displayProperties(Logger log, Properties prop)
  8. dumpConfiguration(Map map, Logger log)
  9. error(Class clz, String logStr, Throwable e)