public class FileLogAdapter extends java.lang.Object implements LogAdapter
限定符和类型 | 方法和说明 |
---|---|
static FileLogAdapter |
getInstance(android.content.Context context,
java.lang.String alias)
实例化一个文件日志记录器。
|
static FileLogAdapter |
getInstance(android.content.Context context,
java.lang.String alias,
int minPriority) |
java.io.File[] |
getLogFilesDesc(int limit) |
boolean |
isLoggable(int priority,
java.lang.String tag)
Used to determine whether log should be printed out or not.
|
void |
log(int priority,
java.lang.String tag,
java.lang.String message,
java.lang.Throwable tr)
Each log will use this pipeline
|
public static FileLogAdapter getInstance(android.content.Context context, java.lang.String alias)
QCloudLogger.INFO
级别以上的日志。context
- 上下文alias
- logger 文件别名public static FileLogAdapter getInstance(android.content.Context context, java.lang.String alias, int minPriority)
public boolean isLoggable(int priority, @Nullable java.lang.String tag)
LogAdapter
isLoggable
在接口中 LogAdapter
priority
- is the log level e.g. DEBUG, WARNINGtag
- is the given tag for the log messagepublic void log(int priority, @NonNull java.lang.String tag, @NonNull java.lang.String message, @Nullable java.lang.Throwable tr)
LogAdapter
log
在接口中 LogAdapter
priority
- is the log level e.g. DEBUG, WARNINGtag
- is the given tag for the log message.message
- is the given message for the log message.tr
- is exception for the given message.public java.io.File[] getLogFilesDesc(int limit)