Class LogEvent

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated() 
    public final class LogEvent
     implements Serializable
                        

    This class encapsulates each individual log event. LogEvents usually originate at a Logger and are routed to LogTargets.

    Author:

    Avalon Development Team

    Peter Donald

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      LogEvent()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Priority getPriority() Get Priority for LogEvent.
      final void setPriority(Priority priority) Set the priority of LogEvent.
      final ContextMap getContextMap() Get ContextMap associated with LogEvent
      final void setContextMap(ContextMap contextMap) Set the ContextMap for this LogEvent.
      final String getCategory() Get the category that LogEvent relates to.
      final String getMessage() Get the message associated with event.
      final Throwable getThrowable() Get throwable instance associated with event.
      final long getTime() Get the absolute time of the log event.
      final long getRelativeTime() Get the time of the log event relative to start of application.
      final void setCategory(String category) Set the LogEvent category.
      final void setMessage(String message) Set the message for LogEvent.
      final void setThrowable(Throwable throwable) Set the throwable for LogEvent.
      final void setTime(long time) Set the absolute time of LogEvent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogEvent

        LogEvent()
    • Method Detail

      • getPriority

         final Priority getPriority()

        Get Priority for LogEvent.

        Returns:

        the LogEvent Priority

      • setPriority

         final void setPriority(Priority priority)

        Set the priority of LogEvent.

        Parameters:
        priority - the new LogEvent priority
      • setContextMap

         final void setContextMap(ContextMap contextMap)

        Set the ContextMap for this LogEvent.

        Parameters:
        contextMap - the context map
      • getCategory

         final String getCategory()

        Get the category that LogEvent relates to.

        Returns:

        the name of category

      • getMessage

         final String getMessage()

        Get the message associated with event.

        Returns:

        the message

      • getThrowable

         final Throwable getThrowable()

        Get throwable instance associated with event.

        Returns:

        the Throwable

      • getTime

         final long getTime()

        Get the absolute time of the log event.

        Returns:

        the absolute time

      • getRelativeTime

         final long getRelativeTime()

        Get the time of the log event relative to start of application.

        Returns:

        the time

      • setCategory

         final void setCategory(String category)

        Set the LogEvent category.

        Parameters:
        category - the category
      • setMessage

         final void setMessage(String message)

        Set the message for LogEvent.

        Parameters:
        message - the message
      • setThrowable

         final void setThrowable(Throwable throwable)

        Set the throwable for LogEvent.

        Parameters:
        throwable - the instance of Throwable
      • setTime

         final void setTime(long time)

        Set the absolute time of LogEvent.

        Parameters:
        time - the time