logahawk.formatters
Interface ArgumentFormatterContainer

All Known Implementing Classes:
DefaultArgumentFormatterContainer

public interface ArgumentFormatterContainer

A container class for ArgumentFormatters. It will modify arguments provided by a Logger instance based on the ArgumentFormatters it contains.


Method Summary
 void add(ArgumentFormatter... formatters)
          Adds the provided ArgumentFormatters.
 String format(List<Object> arguments)
          Applies each ArgumentFormatter to the arguments to get the corresponding Strings, and then merges all the String arguments together into one final String message.
 

Method Detail

add

void add(ArgumentFormatter... formatters)
Adds the provided ArgumentFormatters. The formatters will be used in the order they are added. It is recommended to add the formatters from most specific to most generic.


format

String format(List<Object> arguments)
Applies each ArgumentFormatter to the arguments to get the corresponding Strings, and then merges all the String arguments together into one final String message.