Class TimestampedFormat

    • Field Detail

      • PLACEHOLDER_TIMESTAMP

        public static final String PLACEHOLDER_TIMESTAMP
        the placeholder for the timestamp.
        See Also:
        Constant Field Values
      • m_TimestampFormat

        protected DateFormatString m_TimestampFormat
        the timestamp format.
      • m_TimestampFormatter

        protected transient DateFormat m_TimestampFormatter
        the date formatter in use.
      • m_MessageIndentation

        protected String m_MessageIndentation
        the indentation to use for the message.
      • m_LogFormat

        protected String m_LogFormat
        the format string.
    • Constructor Detail

      • TimestampedFormat

        public TimestampedFormat()
    • Method Detail

      • setTimestampFormat

        public void setTimestampFormat​(DateFormatString value)
        Sets the format for the timestamp.
        Parameters:
        value - the format
      • getTimestampFormat

        public DateFormatString getTimestampFormat()
        Returns the format for the timestamp.
        Returns:
        the format
      • timestampFormatTipText

        public String timestampFormatTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMessageIndentation

        public void setMessageIndentation​(String value)
        Sets the indentation string to prefix each line of the message with.
        Parameters:
        value - the indentation string
      • getMessageIndentation

        public String getMessageIndentation()
        Returns the indentation string to prefix each line of the message with.
        Returns:
        the indentation string
      • messageIndentationTipText

        public String messageIndentationTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setLogFormat

        public void setLogFormat​(String value)
        Sets the format for the message.
        Parameters:
        value - the format
      • getLogFormat

        public String getLogFormat()
        Returns the format for the message.
        Returns:
        the format
      • logFormatTipText

        public String logFormatTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doFormatMessage

        protected String doFormatMessage​(String msg)
        Formats the logging message and returns the updated message.
        Specified by:
        doFormatMessage in class AbstractSimpleFormat
        Parameters:
        msg - the message to format
        Returns:
        the formatted message