Logs an exception with the given logger and the FINEST level.
@param logger the logger
@param t an exception or a throwable
171622
public static void logException( Logger logger, Throwable t ) {
		logException( logger, Level.FINEST, t );
	}
1209279
protected <T extends Throwable> T throwing(final String fqcn, final Level level, final T t) {
        if (isEnabled(level, THROWING_MARKER, (Object) null, null)) {
            logMessageSafely(fqcn, level, THROWING_MARKER, throwingMsg(t), t);
        }
        return t;
    }
260958
public void error(Object message, Throwable t)
    {
        if (IS12)
        {
            getLogger().log(FQCN, Level.ERROR, message, t);
        }
        else
        {
            getLogger().log(FQCN, Level.ERROR, message, t);
        }
    }
922622
public void log(Throwable error, Level level) {
    log(error, null, null, level);
  }
653598
private void log(final String level,
                   final String message,
                   final Throwable t) {
    StringBuffer buf = new StringBuffer();

    long millis  = System.currentTimeMillis();
    buf.append(millis - startTime);

    buf.append(" [");
    buf.append(Thread.currentThread().getName());
    buf.append("] ");

    buf.append(level);
    buf.append(" ");

    buf.append(loggerName);
    buf.append(" - ");

    buf.append(message);

    buf.append(LINE_SEPARATOR);

    System.out.print(buf.toString());
    if (t != null) {
      t.printStackTrace(System.out);
    }
    System.out.flush();
  }
1169914
public static void logError(final Logger logger, final Error e)
	{
		logger.logError(Level.ERROR, "Unexpected Error", e);
	}
1150351
protected void log( Throwable t )
  {
    if( _logger == null )
    {
      t.printStackTrace();
    }
    else
    {
      _logger.warn( "Error running job.", t );
    }
  }
731435
public void fatal(String msg, Throwable t)
	{
		log(LogLevel.FATAL, msg, t);
	}
1123539
public synchronized void log(@Nullable Level level, @Nullable String msg, @Nullable Throwable t) {
        if (!isLoggable(level))
            return;
        System.err.println(df.format(new Date()) + " [" + Thread.currentThread().getName() + "] " + name + " - " + level.getName() + ": " + msg);
        if (t != null)
            t.printStackTrace();

    }
1072049
protected void writePropertiesToLog(Logger logger, Level level) {
    writeToLog(logger, level, getMapAsString(this.properties, separator), null);

    if (this.exception != null) {
      writeToLog(this.logger, Level.ERROR, "Error:", this.exception);
    }
  }
1289813
public void setLogger(Logger logger) {

		System.out.println("LOGGER set");
//		if(logger instanceof SimpleFileLogger) {
			this.logger = logger;
			System.out.println("appender added");
			this.logger.addAppender(this);
//		}
	}
147677
protected void logException (final Object caller, final Throwable t, final Object[] parameters) {
		logException(t, "{}: Exception in '{}' for parameters: {}", new Object[] { getReplacement(), caller, getParametersAsString(parameters) });
	}
494710
public void debug(Throwable t) {
        if (isEnabled() && isDebugEnabled()) {
            dispatchLogException(new LogEvent(this, LogEvent.DEBUG_TYPE, t));
        }
    }
83016
public void logError(Object[] message,Throwable throwable)
    {
        this.log(LogLevel.ERROR,message,throwable);
    }
710555
public void log(Throwable error, String description, Level level) {
    log(error, null, description, level);
  }
211734
public void setLogger(String logger)
    {
        if(logger != null && logger.trim().length() > 0)
            this.logger = LoggerFactory.getLogger(logger);
    }
1335409
public void f(final String msg, Throwable exception) {
        logMgr.log(tag, LogLevelConst.FATAL, msg, exception);
    }