Class DateLayout

java.lang.Object
org.apache.log4j.Layout
org.apache.log4j.helpers.DateLayout

public abstract class DateLayout extends Layout
This abstract layout takes care of all the date related options and formatting work.
  • Field Details

    • NULL_DATE_FORMAT

      public static final String NULL_DATE_FORMAT
      String constant designating no time information. Current value of this constant is NULL.
      See Also:
    • RELATIVE_TIME_DATE_FORMAT

      public static final String RELATIVE_TIME_DATE_FORMAT
      String constant designating relative time. Current value of this constant is RELATIVE.
      See Also:
    • DATE_FORMAT_OPTION

      @Deprecated public static final String DATE_FORMAT_OPTION
      Deprecated.
      Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
      See Also:
    • TIMEZONE_OPTION

      @Deprecated public static final String TIMEZONE_OPTION
      Deprecated.
      Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.
      See Also:
    • pos

      protected FieldPosition pos
    • timeZoneID

      private String timeZoneID
    • dateFormatOption

      private String dateFormatOption
    • dateFormat

      protected DateFormat dateFormat
    • date

      protected Date date
  • Constructor Details

    • DateLayout

      public DateLayout()
  • Method Details