Class AbstractLogListener


  • public class AbstractLogListener
    extends java.lang.Object
    Use this class to create your own log listeners.
    Author:
    stm
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Calendar calendar  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDate()
      Returns the current date and time with milliseconds.
      java.lang.String getMarker​(int aLevel)
      Returns a marker string like "(WW)".
      java.lang.String getMessage​(int aLevel, java.lang.Object aObj, java.lang.Throwable aThrowable)
      Returns a standard message that includes a time stamp and, if aThrowable!
      • Methods inherited from class java.lang.Object

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

      • calendar

        protected java.util.Calendar calendar
    • Constructor Detail

      • AbstractLogListener

        public AbstractLogListener()
    • Method Detail

      • getMessage

        public java.lang.String getMessage​(int aLevel,
                                           java.lang.Object aObj,
                                           java.lang.Throwable aThrowable)
        Returns a standard message that includes a time stamp and, if aThrowable!=null, a stack trace.
      • getDate

        public java.lang.String getDate()
        Returns the current date and time with milliseconds.
      • getMarker

        public java.lang.String getMarker​(int aLevel)
        Returns a marker string like "(WW)".