LoggableComponent ?
Tom Zeller
tzeller at dragonacea.biz
Tue Jun 18 17:22:25 EDT 2013
Mostly for Rod,
How do you feel about a new LoggableComponent interface to standardize
the getLogPrefix() method introduced into the attribute filter and
resolver ?
/** A {@link Component} which provides a log message prefix suitable
for identifying the component in logs. */
public interface LoggableComponent extends IdentifiableComponent {
/**
* Get the name of the component.
*
* @return the name of the component
*/
@Nullable @NonnullAfterInit public String getComponentName();
/**
* Get the log message prefix of this component.
*
* The prefix is of the form "Component name 'ID' :"
*
* @return the log message prefix of this component
*/
@Nullable @NonnullAfterInit public String getLogPrefix();
}
More information about the dev
mailing list