Class EventDetails


  • class EventDetails
    extends java.lang.Object
    Represents the details of a logging event. It is intended to overcome the problem that a LoggingEvent cannot be constructed with purely fake data.
    Version:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String mCategoryName
      the category of the event
      private java.lang.String mLocationDetails
      the location details for the event
      private java.lang.String mMessage
      the msg for the event
      private java.lang.String mNDC
      the NDC for the event
      private Priority mPriority
      the priority of the event
      private java.lang.String mThreadName
      the thread for the event
      private java.lang.String[] mThrowableStrRep
      the throwable details the event
      private long mTimeStamp
      the time of the event
    • Constructor Summary

      Constructors 
      Constructor Description
      EventDetails​(long aTimeStamp, Priority aPriority, java.lang.String aCategoryName, java.lang.String aNDC, java.lang.String aThreadName, java.lang.String aMessage, java.lang.String[] aThrowableStrRep, java.lang.String aLocationDetails)
      Creates a new EventDetails instance.
      EventDetails​(LoggingEvent aEvent)
      Creates a new EventDetails instance.
    • Field Detail

      • mTimeStamp

        private final long mTimeStamp
        the time of the event
      • mPriority

        private final Priority mPriority
        the priority of the event
      • mCategoryName

        private final java.lang.String mCategoryName
        the category of the event
      • mNDC

        private final java.lang.String mNDC
        the NDC for the event
      • mThreadName

        private final java.lang.String mThreadName
        the thread for the event
      • mMessage

        private final java.lang.String mMessage
        the msg for the event
      • mThrowableStrRep

        private final java.lang.String[] mThrowableStrRep
        the throwable details the event
      • mLocationDetails

        private final java.lang.String mLocationDetails
        the location details for the event
    • Constructor Detail

      • EventDetails

        EventDetails​(long aTimeStamp,
                     Priority aPriority,
                     java.lang.String aCategoryName,
                     java.lang.String aNDC,
                     java.lang.String aThreadName,
                     java.lang.String aMessage,
                     java.lang.String[] aThrowableStrRep,
                     java.lang.String aLocationDetails)
        Creates a new EventDetails instance.
        Parameters:
        aTimeStamp - a long value
        aPriority - a Priority value
        aCategoryName - a String value
        aNDC - a String value
        aThreadName - a String value
        aMessage - a String value
        aThrowableStrRep - a String[] value
        aLocationDetails - a String value
      • EventDetails

        EventDetails​(LoggingEvent aEvent)
        Creates a new EventDetails instance.
        Parameters:
        aEvent - a LoggingEvent value
    • Method Detail

      • getTimeStamp

        long getTimeStamp()
        See Also:
        mTimeStamp
      • getCategoryName

        java.lang.String getCategoryName()
        See Also:
        mCategoryName
      • getNDC

        java.lang.String getNDC()
        See Also:
        mNDC
      • getThreadName

        java.lang.String getThreadName()
        See Also:
        mThreadName
      • getMessage

        java.lang.String getMessage()
        See Also:
        mMessage
      • getLocationDetails

        java.lang.String getLocationDetails()
        See Also:
        mLocationDetails
      • getThrowableStrRep

        java.lang.String[] getThrowableStrRep()
        See Also:
        mThrowableStrRep