Class XMLLayout

    • Constructor Detail

      • XMLLayout

        public XMLLayout()
        Deprecated.
    • Method Detail

      • setLocationInfo

        public void setLocationInfo​(boolean flag)
        Deprecated.
        The LocationInfo option takes a boolean value. By default, it is set to false which means there will be no location information output by this layout. If the the option is set to true, then the file name and line number of the statement at the origin of the log statement will be output.

        If you are embedding this layout within an SMTPAppender then make sure to set the LocationInfo option of that appender as well.

      • getLocationInfo

        public boolean getLocationInfo()
        Deprecated.
        Returns the current value of the LocationInfo option.
      • setProperties

        public void setProperties​(boolean flag)
        Deprecated.
        Sets whether MDC key-value pairs should be output, default false.
        Parameters:
        flag - new value.
        Since:
        1.2.15
      • getProperties

        public boolean getProperties()
        Deprecated.
        Gets whether MDC key-value pairs should be output.
        Returns:
        true if MDC key-value pairs are output.
        Since:
        1.2.15
      • doLayout

        public java.lang.String doLayout​(ILoggingEvent event)
        Deprecated.
        Formats a ILoggingEvent in conformity with the log4j.dtd.
        Parameters:
        event - The event to format
        Returns:
        the event formatted as a String