Class LoggingFormatterTemplateImpl

Package class diagram package LoggingFormatterTemplateImpl
  extended by
      extended by
All Implemented Interfaces:
Service, LoggingFormatter

public class LoggingFormatterTemplateImpl
extends BaseService
implements LoggingFormatter

Formatter implementation that employs a TemplateService to format LogMessage instances.

This service must be configured with an XML configuration document similar to the following:

   <?xml version="1.0"?>

Constructor Summary
          Default constructor.
Method Summary
 java.lang.String format(LogMessage message)
          Format the given message.
 void setTemplateService(TemplateService tmplSvc)
          Injection point for the TemplateService dependency.
Methods inherited from class
create, destroy, getConfigHome, getName, getProperties, getProperty, getXMLProperties, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public LoggingFormatterTemplateImpl()
Default constructor.

Method Detail


public java.lang.String format(LogMessage message)
Format the given message.

Specified by:
format in interface LoggingFormatter
String containing the formatted LogMessage content.


public void setTemplateService(TemplateService tmplSvc)
Injection point for the TemplateService dependency.

tmplSvc - TemplateService instance that must be used to format log messages.