java.lang.Object | ||
↳ | org.apache.log4j.Layout | |
↳ | org.apache.log4j.helpers.DateLayout |
Known Direct Subclasses |
This abstract layout takes care of all the date related options and formatting work.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DATE_FORMAT_OPTION | This constant is deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term. | |||||||||
String | NULL_DATE_FORMAT | String constant designating no time information. | |||||||||
String | RELATIVE_TIME_DATE_FORMAT | String constant designating relative time. | |||||||||
String | TIMEZONE_OPTION | This constant is deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
date | |||||||||||
dateFormat | |||||||||||
pos |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.log4j.Layout
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns value of the DateFormat option.
| |||||||||||
This method is deprecated.
Use the setter method for the option directly instead
of the generic
setOption method.
| |||||||||||
Returns value of the TimeZone option.
| |||||||||||
The value of the DateFormat option should be either an
argument to the constructor of SimpleDateFormat or one of
the srings "NULL", "RELATIVE", "ABSOLUTE", "DATE" or "ISO8601.
| |||||||||||
Sets the DateFormat used to format date and time in the time zone
determined by
timeZone parameter. | |||||||||||
Sets the DateFormat used to format time and date in the
zone determined by
timeZone . | |||||||||||
This method is deprecated.
Use the setter method for the option directly instead
of the generic
setOption method.
| |||||||||||
The TimeZoneID option is a time zone ID string in the format
expected by the
getTimeZone(String) method. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.log4j.Layout
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.log4j.spi.OptionHandler
|
This constant is deprecated.
Options are now handled using the JavaBeans paradigm.
This constant is not longer needed and will be removed in the
near term.
String constant designating no time information. Current value of this constant is NULL.
String constant designating relative time. Current value of this constant is RELATIVE.
This constant is deprecated.
Options are now handled using the JavaBeans paradigm.
This constant is not longer needed and will be removed in the
near term.
Returns value of the DateFormat option.
This method is deprecated.
Use the setter method for the option directly instead
of the generic setOption
method.
Returns value of the TimeZone option.
The value of the DateFormat option should be either an argument to the constructor of SimpleDateFormat or one of the srings "NULL", "RELATIVE", "ABSOLUTE", "DATE" or "ISO8601.
Sets the DateFormat used to format date and time in the time zone
determined by timeZone
parameter. The DateFormat used
will depend on the dateFormatType
.
The recognized types are NULL_DATE_FORMAT
, RELATIVE_TIME_DATE_FORMAT
ABS_TIME_DATE_FORMAT
, DATE_AND_TIME_DATE_FORMAT
and ISO8601_DATE_FORMAT
. If the
dateFormatType
is not one of the above, then the
argument is assumed to be a date pattern for SimpleDateFormat.
Sets the DateFormat used to format time and date in the
zone determined by timeZone
.
This method is deprecated.
Use the setter method for the option directly instead
of the generic setOption
method.
The TimeZoneID option is a time zone ID string in the format
expected by the getTimeZone(String)
method.