Java slf4j Logger LogException(Logger log, String descrption, Throwable e)

Here you can find the source of LogException(Logger log, String descrption, Throwable e)

Description

Log Exception

License

Apache License

Declaration

public static void LogException(Logger log, String descrption, Throwable e) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import org.slf4j.Logger;

public class Main {
    public static void LogException(Logger log, String descrption, Throwable e) {
        String msg = e.getMessage();
        log.error("{}:{}", descrption, msg);
    }//ww w. j a  va  2  s  .c  om
}

Related

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