public interface Printer extends Interceptor
Modifier and Type | Method and Description |
---|---|
Formatter |
getFormatter()
Specify the formatter of this printer.
|
int |
getMaxLengthPerLine()
Indicate how many characters should contains in one line; but only affect when soft wrap
is enabled.
|
SoftWrapper |
getSoftWrapper()
Specify word wrapper, if needed.
|
Style |
getStyle() |
void |
print(int level,
String tag,
String msg)
Do the real output operation, e.g.
|
onIntercept
@Nullable Formatter getFormatter()
SoftWrapper getSoftWrapper()
SoftWrapper
is strongly recommended.SoftWrapper.WORD_BREAK_WRAPPER
,
SoftWrapper.WORD_LENGTH_WRAPPER
int getMaxLengthPerLine()
getSoftWrapper()
returns not null.