/** * Return a property for this event. The return value can be null. * * Equivalent to getMDC(String) in log4j 1.2. Provided * for compatibility with log4j 1.3. * * @param key property name * @return property value or null if property not set * @since 1.2.15 */ public final String getProperty(final String key) { Object value = getMDC(key); String retval = null; if (value != null) { retval = value.toString(); } return retval; }
/** * Return a property for this event. The return value can be null. * * Equivalent to getMDC(String) in log4j 1.2. Provided * for compatibility with log4j 1.3. * * @param key property name * @return property value or null if property not set * @since 1.2.15 */ public final String getProperty(final String key) { Object value = getMDC(key); String retval = null; if (value != null) { retval = value.toString(); } return retval; }
/** * Return a property for this event. The return value can be null. * * Equivalent to getMDC(String) in log4j 1.2. Provided * for compatibility with log4j 1.3. * * @param key property name * @return property value or null if property not set * @since 1.2.15 */ public final String getProperty(final String key) { Object value = getMDC(key); String retval = null; if (value != null) { retval = value.toString(); } return retval; }
/** * Return a property for this event. The return value can be null. * * Equivalent to getMDC(String) in log4j 1.2. Provided * for compatibility with log4j 1.3. * * @param key property name * @return property value or null if property not set * @since 1.2.15 */ public final String getProperty(final String key) { Object value = getMDC(key); String retval = null; if (value != null) { retval = value.toString(); } return retval; }
/** * Return a property for this event. The return value can be null. * * Equivalent to getMDC(String) in log4j 1.2. Provided * for compatibility with log4j 1.3. * * @param key property name * @return property value or null if property not set * @since 1.2.15 */ public final String getProperty(final String key) { Object value = getMDC(key); String retval = null; if (value != null) { retval = value.toString(); } return retval; }
/** * Return a property for this event. The return value can be null. * * Equivalent to getMDC(String) in log4j 1.2. Provided * for compatibility with log4j 1.3. * * @param key property name * @return property value or null if property not set * @since 1.2.15 */ public final String getProperty(final String key) { Object value = getMDC(key); String retval = null; if (value != null) { retval = value.toString(); } return retval; }