Class LogFile

    • Field Detail

      • m_Encoding

        protected BaseCharset m_Encoding
        the encoding to use.
      • m_AddTimestamp

        protected boolean m_AddTimestamp
        whether to block the flow execution.
      • m_TimeZone

        protected TimeZone m_TimeZone
        the timezone to use.
      • m_Formatter

        protected transient DateFormat m_Formatter
        for generating the timestamp.
    • Constructor Detail

      • LogFile

        public LogFile()
    • Method Detail

      • outputFileTipText

        public String outputFileTipText()
        Returns the tip text for this property.
        Specified by:
        outputFileTipText in interface FileWriter
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setEncoding

        public void setEncoding​(BaseCharset value)
        Sets the encoding to use.
        Specified by:
        setEncoding in interface EncodingSupporter
        Parameters:
        value - the encoding, e.g. "UTF-8" or "UTF-16", empty string for default
      • getEncoding

        public BaseCharset getEncoding()
        Returns the encoding to use.
        Specified by:
        getEncoding in interface EncodingSupporter
        Returns:
        the encoding, e.g. "UTF-8" or "UTF-16", empty string for default
      • encodingTipText

        public String encodingTipText()
        Returns the tip text for this property.
        Specified by:
        encodingTipText in interface EncodingSupporter
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setAddTimestamp

        public void setAddTimestamp​(boolean value)
        Sets whether to output a timestamp on separate line using the specified format.
        Parameters:
        value - true if to output timestamp
      • getAddTimestamp

        public boolean getAddTimestamp()
        Returns whether to output a timestamp on separate line using the specified format.
        Returns:
        true if to output timestamp
      • addTimestampTipText

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

        protected DateFormat getFormatter()
        Returns the instance of a date formatter to use.
        Returns:
        the formatter object
      • getDefaultFormat

        protected DateFormatString getDefaultFormat()
        Returns the default format to use.
        Returns:
        the format
      • setFormat

        public void setFormat​(DateFormatString value)
        Sets the format string to use; use single quotes for non-format chars, eg: "yyyyMMdd'T'HHmmss.'csv'".
        Parameters:
        value - the format
      • getFormat

        public DateFormatString getFormat()
        Returns the format string in use; use single quotes for non-format chars, eg: "yyyyMMdd'T'HHmmss.'csv'".
        Returns:
        the format
      • formatTipText

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

        public void setTimeZone​(TimeZone value)
        Sets the time zone to use.
        Parameters:
        value - the time zone
      • getTimeZone

        public TimeZone getTimeZone()
        Returns the time zone in use.
        Returns:
        the time zone
      • timeZoneTipText

        public String timeZoneTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • check

        protected String check​(String msg)
        Hook method before attempting to send the message.
        Overrides:
        check in class AbstractNotification
        Parameters:
        msg - the message to send
        Returns:
        null if successful, otherwise error message
      • doSendNotification

        protected String doSendNotification​(String msg)
        Sends the notification.
        Specified by:
        doSendNotification in class AbstractNotification
        Parameters:
        msg - the message to send
        Returns:
        null if successfully sent, otherwise error message