src/main/java/org/jinstagram/utils/LogHelper.java
public static void logException(Logger logger, String methodName, Throwable e,
                                    long timeSpent) {
        logger.error(String.format(EXCEPTION_PATTERN, methodName, e.getClass().getSimpleName(), e.getMessage()));
    }
public static void logException(Logger logger, String methodName, Throwable e,
                                    long timeSpent) {
        logger.error(String.format(EXCEPTION_PATTERN, methodName, e.getClass().getSimpleName(), e.getMessage()));
    }
<p>
Logs the given <code>Throwable</code> with {@link Level#ERROR}.
</p>;2

@param methodName     The name of method where the exception occurs.
@param e              The <code>Throwable</code> caught to be logged.
@param timeSpent      the time spent
@param logger         the logger instance
@param verboseLogging the control flag defining whether the detailed logging actions should be performed