Java slf4j Logger logDebug(Logger logger, String mensagem, Object... params)

Here you can find the source of logDebug(Logger logger, String mensagem, Object... params)

Description

Verifica estado de logger e efetua log de nivel debug.

License

Open Source License

Parameter

Parameter Description

Declaration

public static void logDebug(Logger logger, String mensagem, Object... params) 

Method Source Code

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

import org.slf4j.Logger;

public class Main {
    /**/*from  ww  w  . ja  va 2s .  c  o m*/
     * Verifica estado de logger e efetua log de nivel debug.
     * 
     * @param {@link Logger} logger
     * @param {@link String} mensagem
     * @param {@link Object} params
     */
    public static void logDebug(Logger logger, String mensagem, Object... params) {
        if (logger.isDebugEnabled()) {
            logger.debug(mensagem, params);
        }
    }
}

Related

  1. log(String message)
  2. logAndIdError(Logger log, String errorMessage)
  3. logArgs(final Logger logger, final Object[] args)
  4. logBind(Logger log, int index, Object value)
  5. logBytes(byte[] data, int length, String prefix, Logger logger)
  6. logDebug(String string)
  7. logEntrance(Logger logger, String methodName, String methodArguments)
  8. logError(final Logger logger, final String message, final Throwable cause)
  9. logError(Logger log, Throwable t, String message)