public class LF5TargetFactory implements LogTargetFactory
{
public LogTarget createTarget( final Configuration configuration )
throws ConfigurationException
{
LF5LogTarget result = new LF5LogTarget();
Configuration child = configuration.getChild( "NDC-pattern", false );
if( null != child )
{
result.setNDCFormatter( new FormatterFactory().createFormatter( child ) );
}
return result;
}