public class LogCaptor<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
clearLogs() |
static <T> LogCaptor<T> |
forClass(Class<T> clazz) |
List<String> |
getDebugLogs() |
List<String> |
getErrorLogs() |
List<String> |
getInfoLogs() |
List<String> |
getLogs() |
List<String> |
getTraceLogs() |
List<String> |
getWarnLogs() |
void |
resetLogLevel()
Resets the log level of the target class to the initial value which was available before
changing it with
setLogLevelToInfo(), setLogLevelToDebug() or with setLogLevelToTrace() |
void |
setLogLevelToDebug()
Overrides the log level property of the target class.
|
void |
setLogLevelToInfo()
Overrides the log level property of the target class.
|
void |
setLogLevelToTrace()
Overrides the log level property of the target class.
|
public void setLogLevelToInfo()
LogCaptor has been created.
To roll-back to the initial state use: resetLogLevel()
This option will implicitly include the following log levels: WARN and ERRORpublic void setLogLevelToDebug()
LogCaptor has been created.
To roll-back to the initial state use: resetLogLevel()
This option will implicitly include the following log levels: INFO, WARN and ERRORpublic void setLogLevelToTrace()
LogCaptor has been created.
To roll-back to the initial state use: resetLogLevel()
This option will implicitly include the following log levels: INFO, DEBUG, WARN and ERRORpublic void resetLogLevel()
setLogLevelToInfo(), setLogLevelToDebug() or with setLogLevelToTrace()public void clearLogs()
Copyright © 2020. All rights reserved.