Examples of ThrowableInformation


Examples of org.apache.log4j.spi.ThrowableInformation

        return new Object[0];
    }

    @Override
    public Throwable getThrowable() {
        ThrowableInformation ti = loggingEvent.getThrowableInformation();
        if (ti != null) {
            return ti.getThrowable();
        }

        return null;
    }
View Full Code Here

Examples of org.apache.log4j.spi.ThrowableInformation


          LocationInfo locationInfo = new LocationInfo(fileName,
                              className, methodName, lineNumber);
 
          ThrowableInformation throwableInfo =  new ThrowableInformation(
                                throwable);
 
          properties.putAll(mdc);
   
            LoggingEvent event = new LoggingEvent(eventLogger.getName(),
View Full Code Here

Examples of org.apache.log4j.spi.ThrowableInformation

        long id = rs.getLong(13);
        //LogLog.info("Received event with id=" + id);
        lastId = id;

    ThrowableInformation throwableInfo = null;
        if ((mask & DBHelper.EXCEPTION_EXISTS) != 0) {
          throwableInfo = getException(connection, id);
        }

      LoggingEvent event = new LoggingEvent(logger.getName(),
View Full Code Here

Examples of org.apache.log4j.spi.ThrowableInformation

      String[] strRep = new String[len];
      for (int i = 0; i < len; i++) {
        strRep[i] = (String) v.get(i);
      }
      // we've filled strRep, we now attach it to the event
      return new ThrowableInformation(strRep);
    } finally {
      if (statement != null) {
        statement.close();
      }
    }
View Full Code Here

Examples of org.apache.log4j.spi.ThrowableInformation

    }

    LoggingEvent event = new LoggingEvent(null,
            logger, timeStamp, levelImpl, message,
            threadName,
            new ThrowableInformation(exception),
            ndc,
            info,
            properties);

    return event;
View Full Code Here

Examples of org.apache.log4j.spi.ThrowableInformation

              || (lineNumber != null)) {
          info = new LocationInfo(fileName, className, methodName, lineNumber);
      } else {
        info = LocationInfo.NA_LOCATION_INFO;
      }
      ThrowableInformation throwableInfo = null;
      if (exception != null) {
          throwableInfo = new ThrowableInformation(exception);
      }

        LoggingEvent loggingEvent = new LoggingEvent(null,
                logger, timeStamp, level, message,
                threadName,
View Full Code Here

Examples of org.apache.log4j.spi.ThrowableInformation

          info = new LocationInfo(fileName, className, methodName, lineNumber);
      } else {
        info = LocationInfo.NA_LOCATION_INFO;
      }

        ThrowableInformation throwableInfo = null;
        if (exception != null) {
            throwableInfo = new ThrowableInformation(exception);
        }

        LoggingEvent loggingEvent = new LoggingEvent(null,
                logger, timeStamp, level, message,
                threadName,
View Full Code Here

Examples of org.apache.log4j.spi.ThrowableInformation

      loggingEvent.setTimeStamp(timeStamp);
      loggingEvent.setLevel(levelImpl);
      loggingEvent.setThreadName(threadName);
      loggingEvent.setMessage(message);
      loggingEvent.setNDC(ndc);
      loggingEvent.setThrowableInformation(new ThrowableInformation(exception));
      loggingEvent.setLocationInformation(info);
      loggingEvent.setProperties(properties);
     
      events.add(loggingEvent);
    
View Full Code Here

Examples of org.apache.log4j.spi.ThrowableInformation

      loggingEvent.setTimeStamp(timeStamp);
      loggingEvent.setLevel(level);
      loggingEvent.setThreadName(threadName);
      loggingEvent.setMessage(message);
      loggingEvent.setNDC(ndc);
      loggingEvent.setThrowableInformation(new ThrowableInformation(exception));
      loggingEvent.setLocationInformation(info);
      loggingEvent.setProperties(properties);
     
      events.add(loggingEvent);
View Full Code Here

Examples of org.apache.log4j.spi.ThrowableInformation

                            message, null);
                    event.setLocationInformation(new LocationInfo(fileName,
                            className, methodName, lineNumber));
                    properties.putAll(mdc);
                    event.setTimeStamp(timeStamp);
                    event.setThrowableInformation(new ThrowableInformation(
                            exception));

                    event.setProperties(properties);
                    event.setThreadName(threadName);
                    event.setNDC(ndc);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.