Java slf4j Logger logErrors(Logger logger, List strings)

Here you can find the source of logErrors(Logger logger, List strings)

Description

Efetua log de varios erros.

License

Open Source License

Parameter

Parameter Description

Declaration

public static void logErrors(Logger logger, List<String> strings) 

Method Source Code


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

import java.util.List;
import org.slf4j.Logger;

public class Main {
    /**//from w ww  .  j a  v a  2s . co  m
     * Efetua log de varios erros.
     * 
     * @param {@link Logger} logger
     * @param {@link List} strings
     */
    public static void logErrors(Logger logger, List<String> strings) {
        if (strings != null) {
            for (String error : strings) {
                logger.error("logErrors :: " + error);
            }
        }
    }
}

Related

  1. logDebug(String string)
  2. logEntrance(Logger logger, String methodName, String methodArguments)
  3. logError(final Logger logger, final String message, final Throwable cause)
  4. logError(Logger log, Throwable t, String message)
  5. logError(String message, Throwable ex, Logger logger, String userId)
  6. LogException(Logger log, String descrption, Throwable e)
  7. logExit(Logger logger, String methodName, String returnValue, long timeSpent)
  8. loggerForThisClass()
  9. loggerWithName(Class klass, String name)