public class PLogConfig extends Object
You can't call constructor directly; instead we recommend you to use Builder. All options are documented in that class.
PLogConfig.Builder
Modifier and Type | Class and Description |
---|---|
static class |
PLogConfig.Builder |
Modifier and Type | Method and Description |
---|---|
static void |
checkConfigSafe(PLogConfig config)
Check whether a config is valid or not.
|
String |
getEmptyMsg() |
int |
getEmptyMsgLevel() |
Interceptor |
getGlobalInterceptor() |
int |
getGlobalStackOffset() |
String |
getGlobalTag() |
int |
getMaxRecursiveDepth() |
boolean |
isForceConcatGlobalTag() |
boolean |
isNeedLineNumber() |
boolean |
isNeedThreadInfo() |
boolean |
isUseAutoTag() |
static PLogConfig.Builder |
newBuilder()
Create a new Builder.
|
static PLogConfig.Builder |
newBuilder(PLogConfig copy)
Create a new builder and clone all options in the argument.
|
public static void checkConfigSafe(PLogConfig config) throws RuntimeException
If all condition check pass, then this method do nothing; otherwise it would throw a Runtime Exception.
config
- config object to detectRuntimeException
- maybe any subclass of RuntimeException if any assertion failed.public static PLogConfig.Builder newBuilder()
public static PLogConfig.Builder newBuilder(PLogConfig copy)
public int getGlobalStackOffset()
public String getEmptyMsg()
public int getEmptyMsgLevel()
public String getGlobalTag()
public boolean isForceConcatGlobalTag()
public boolean isUseAutoTag()
@Nullable public Interceptor getGlobalInterceptor()
public boolean isNeedLineNumber()
public boolean isNeedThreadInfo()
public int getMaxRecursiveDepth()