public static class ExceptionLogger.CountLogWatcher extends ExceptionLogger
ExceptionLogger.CountLogWatcherDETAILS, SIMPLE| 限定符 | 构造器和说明 |
|---|---|
protected |
CountLogWatcher(boolean details)
构造函数
|
protected |
CountLogWatcher(boolean details,
Class<?> clazz)
构造函数
|
protected |
CountLogWatcher(boolean details,
String loggerName)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getFailedTimes()
获取失败次数
|
boolean |
onCaughtException(String message,
Throwable e) |
newCountWatcher, newCountWatcher, newCountWatcher, newLogWatcher, newLogWatcher, newLogWatcherprotected CountLogWatcher(boolean details)
details - 是否记录StackTraceprotected CountLogWatcher(boolean details,
Class<?> clazz)
details - 是否记录StackTraceclazz - the logger will be named after clazzprotected CountLogWatcher(boolean details,
String loggerName)
details - 是否记录StackTraceloggerName - the name of the loggerpublic boolean onCaughtException(String message, Throwable e)
onCaughtException 在接口中 ExceptionWatcheronCaughtException 在类中 ExceptionLoggerpublic int getFailedTimes()
Copyright © 2020. All rights reserved.