JavaScript is disabled on your browser.
Skip navigation links
Overview
Package
Class
Tree
Deprecated
Index
Help
Prev Class
Next Class
Frames
No Frames
All Classes
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
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 and Description
java.lang.String
format
(
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
Skip navigation links
Overview
Package
Class
Tree
Deprecated
Index
Help
Prev Class
Next Class
Frames
No Frames
All Classes
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method