public interface LogControl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAppenders()
Get current appenders
|
ch.qos.logback.classic.Level |
getAppenderThreshold(java.lang.String appenderName)
Reads current threshold of the appender
|
java.io.File |
getLogFile(java.lang.String fileName)
Get file reference to log file
|
java.util.List<java.lang.String> |
getLogFileNames()
Returns the list of titles of logs
|
ch.qos.logback.classic.Level |
getLoggerLevel(java.lang.String loggerName)
Reads current level of the logger
|
java.util.List<java.lang.String> |
getLoggers()
Get current loggers
|
java.lang.String |
getTail(java.lang.String fileName)
Reads a log tail equals 50Kb
|
void |
setAppenderThreshold(java.lang.String appenderName,
ch.qos.logback.classic.Level threshold)
Writes threshold for the specified logger
|
void |
setLoggerLevel(java.lang.String loggerName,
ch.qos.logback.classic.Level level)
Writes down level for the specified logger
|
static final java.lang.String NAME
java.util.List<java.lang.String> getLogFileNames()
java.lang.String getTail(java.lang.String fileName) throws LogControlException
fileName
- name of a readable fileLogControlException
java.io.File getLogFile(java.lang.String fileName) throws LogFileNotFoundException
fileName
- log file nameLogFileNotFoundException
java.util.List<java.lang.String> getLoggers()
ch.qos.logback.classic.Level getLoggerLevel(java.lang.String loggerName)
loggerName
- loggervoid setLoggerLevel(java.lang.String loggerName, ch.qos.logback.classic.Level level)
loggerName
- logger namelevel
- leveljava.util.List<java.lang.String> getAppenders()
ch.qos.logback.classic.Level getAppenderThreshold(java.lang.String appenderName) throws AppenderThresholdNotSupported
appenderName
- appenderAppenderThresholdNotSupported
void setAppenderThreshold(java.lang.String appenderName, ch.qos.logback.classic.Level threshold) throws AppenderThresholdNotSupported
appenderName
- appenderthreshold
- threshold levelAppenderThresholdNotSupported