public final class LogRequest extends Object
NOTE: APIs in PLog
class is for common scenarios and this class is for advanced usage.
Some decor method in PLog
will NOT be added into this class, e.g.
PLog.wtf(Throwable)
.
Constructor and Description |
---|
LogRequest() |
Modifier and Type | Method and Description |
---|---|
LogRequest |
category(Category category) |
LogRequest |
category(String category) |
void |
execute()
Deprecated.
This method name may be a little ambiguous. Consider use
print()
instead. |
Category |
getCategory() |
int |
getLevel() |
String |
getMsg() |
Object[] |
getParams() |
int |
getStackOffset() |
String |
getTag() |
LogRequest |
level(int level) |
LogRequest |
msg(String msg) |
LogRequest |
params(Object... params) |
void |
print()
Print log to prepared printers.
|
LogRequest |
stackOffset(int stackOffset) |
LogRequest |
tag(String tag) |
LogRequest |
throwable(Throwable throwable) |
public int getLevel()
public int getStackOffset()
public String getTag()
public Category getCategory()
public String getMsg()
public Object[] getParams()
public LogRequest throwable(Throwable throwable)
public LogRequest category(String category)
public LogRequest level(int level)
public LogRequest tag(String tag)
public LogRequest category(Category category)
public LogRequest msg(String msg)
public LogRequest params(Object... params)
public LogRequest stackOffset(int stackOffset)
@Deprecated public void execute()
print()
instead.public void print()