| Constructor and Description |
|---|
AndroidPrinter()
Constructor.
|
AndroidPrinter(boolean autoSeparate)
Constructor.
|
AndroidPrinter(boolean autoSeparate,
int maxChunkSize)
Constructor.
|
AndroidPrinter(int maxChunkSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
println(int logLevel,
java.lang.String tag,
java.lang.String msg)
Print log in new line.
|
public AndroidPrinter()
If single message is too long, it will be separated to several chunks automatically, the max
size of each chunk default to be , you can specify the
maxChunkSize using AndroidPrinter(int).
public AndroidPrinter(boolean autoSeparate)
autoSeparate - whether the message should be separated by line separator automatically.
Imaging there is a message "line1\nline2\nline3", and each line has chars
less than max-chunk-size, then the message would be separated to 3 lines
automaticallypublic AndroidPrinter(int maxChunkSize)
maxChunkSize - the max size of each chunk. If the message is too long, it will be
separated to several chunks automaticallypublic AndroidPrinter(boolean autoSeparate,
int maxChunkSize)
autoSeparate - whether the message should be separated by line separator automatically.
Imaging there is a message "line1\nline2\nline3", and each line has chars
less than max-chunk-size, then the message would be separated to 3 lines
automaticallymaxChunkSize - the max size of each chunk. If the message is too long, it will be
separated to several chunks automatically