Package com.elvishew.xlog.formatter
Interface Formatter<T>
-
- Type Parameters:
T- the type of the data
- All Known Subinterfaces:
BorderFormatter,JsonFormatter,ObjectFormatter<T>,StackTraceFormatter,ThreadFormatter,ThrowableFormatter,XmlFormatter
- All Known Implementing Classes:
BundleFormatter,DefaultBorderFormatter,DefaultJsonFormatter,DefaultStackTraceFormatter,DefaultThreadFormatter,DefaultThrowableFormatter,DefaultXmlFormatter,IntentFormatter
public interface Formatter<T>A formatter is used for format the data that is not a string, or that is a string but not well formatted, we should format the data to a well formatted string so printers can print them.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringformat(T data)Format the data to a readable and loggable string.
-
-
-
Method Detail
-
format
java.lang.String format(T data)
Format the data to a readable and loggable string.- Parameters:
data- the data to format- Returns:
- the formatted string data
-
-