/** The value of the <b>DateFormat</b> option should be either an argument to the constructor of {@link SimpleDateFormat} or one of the srings "NULL", "RELATIVE", "ABSOLUTE", "DATE" or "ISO8601. */ public void setDateFormat(String dateFormat) { if (dateFormat != null) { dateFormatOption = dateFormat; } setDateFormat(dateFormatOption, TimeZone.getDefault()); }
dateFormat(buf, event);
dateFormat(buf, event);
public void activateOptions() { setDateFormat(dateFormatOption); if(timeZoneID != null && dateFormat != null) { dateFormat.setTimeZone(TimeZone.getTimeZone(timeZoneID)); } }
/** Instantiate a TTCCLayout object with {@link org.apache.log4j.helpers.RelativeTimeDateFormat} as the date formatter in the local time zone. @since 0.7.5 */ public TTCCLayout() { this.setDateFormat(RELATIVE_TIME_DATE_FORMAT, null); }
/** Instantiate a TTCCLayout object using the local time zone. The DateFormat used will depend on the <code>dateFormatType</code>. <p>This constructor just calls the {@link DateLayout#setDateFormat} method. */ public TTCCLayout(String dateFormatType) { this.setDateFormat(dateFormatType); }
/** The value of the <b>DateFormat</b> option should be either an argument to the constructor of {@link SimpleDateFormat} or one of the srings "NULL", "RELATIVE", "ABSOLUTE", "DATE" or "ISO8601. */ public void setDateFormat(String dateFormat) { if (dateFormat != null) { dateFormatOption = dateFormat; } setDateFormat(dateFormatOption, TimeZone.getDefault()); }
dateFormat(buf, event);
/** The value of the <b>DateFormat</b> option should be either an argument to the constructor of {@link SimpleDateFormat} or one of the srings "NULL", "RELATIVE", "ABSOLUTE", "DATE" or "ISO8601. */ public void setDateFormat(String dateFormat) { if (dateFormat != null) { dateFormatOption = dateFormat; } setDateFormat(dateFormatOption, TimeZone.getDefault()); }
public void activateOptions() { setDateFormat(dateFormatOption); if(timeZoneID != null && dateFormat != null) { dateFormat.setTimeZone(TimeZone.getTimeZone(timeZoneID)); } }
public void activateOptions() { setDateFormat(dateFormatOption); if(timeZoneID != null && dateFormat != null) { dateFormat.setTimeZone(TimeZone.getTimeZone(timeZoneID)); } }
/** Instantiate a TTCCLayout object with {@link org.apache.log4j.helpers.RelativeTimeDateFormat} as the date formatter in the local time zone. @since 0.7.5 */ public TTCCLayout() { this.setDateFormat(RELATIVE_TIME_DATE_FORMAT, null); }
/** Instantiate a TTCCLayout object with {@link org.apache.log4j.helpers.RelativeTimeDateFormat} as the date formatter in the local time zone. @since 0.7.5 */ public TTCCLayout() { this.setDateFormat(RELATIVE_TIME_DATE_FORMAT, null); }
/** Instantiate a TTCCLayout object using the local time zone. The DateFormat used will depend on the <code>dateFormatType</code>. <p>This constructor just calls the {@link DateLayout#setDateFormat} method. */ public TTCCLayout(String dateFormatType) { this.setDateFormat(dateFormatType); }
/** Instantiate a TTCCLayout object using the local time zone. The DateFormat used will depend on the <code>dateFormatType</code>. <p>This constructor just calls the {@link DateLayout#setDateFormat} method. */ public TTCCLayout(String dateFormatType) { this.setDateFormat(dateFormatType); }
/** Instantiate a TTCCLayout object with {@link org.apache.log4j.helpers.RelativeTimeDateFormat} as the date formatter in the local time zone. @since 0.7.5 */ public TTCCLayout() { this.setDateFormat(RELATIVE_TIME_DATE_FORMAT, null); }
/** Instantiate a TTCCLayout object with {@link org.apache.log4j.helpers.RelativeTimeDateFormat} as the date formatter in the local time zone. @since 0.7.5 */ public TTCCLayout() { this.setDateFormat(RELATIVE_TIME_DATE_FORMAT, null); }