Package com.elvishew.xlog.printer
Class AndroidPrinter
- java.lang.Object
-
- com.elvishew.xlog.printer.AndroidPrinter
-
-
Constructor Summary
Constructors Constructor Description AndroidPrinter()Constructor.AndroidPrinter(boolean autoSeparate)Constructor.AndroidPrinter(boolean autoSeparate, int maxChunkSize)Constructor.AndroidPrinter(int maxChunkSize)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprintln(int logLevel, java.lang.String tag, java.lang.String msg)Print log in new line.
-
-
-
Constructor Detail
-
AndroidPrinter
public AndroidPrinter()
Constructor.If single message is too long, it will be separated to several chunks automatically, the max size of each chunk default to be 4000, you can specify the maxChunkSize using
AndroidPrinter(int).
-
AndroidPrinter
public AndroidPrinter(boolean autoSeparate)
Constructor.- Parameters:
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 automatically- Since:
- 1.7.1
-
AndroidPrinter
public AndroidPrinter(int maxChunkSize)
Constructor.- Parameters:
maxChunkSize- the max size of each chunk. If the message is too long, it will be separated to several chunks automatically- Since:
- 1.4.1
-
AndroidPrinter
public AndroidPrinter(boolean autoSeparate, int maxChunkSize)Constructor.- Parameters:
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- Since:
- 1.7.1
-
-