@Singleton @Configurable public class SetLogLevel extends AbstractHealthAction
<health:HttpStatusHealthCheck ee:Named="httpStatusCheck">
<url>http://localhost:8080/test-ping.jsp</url>
</health:HttpStatusHealthCheck>
<health:SetLogLevel>
<level>FINEST</level>
<logger>com.caucho</logger>
<logger>com.foo</logger>
<time>60s</time>
<health:IfHealthCritical healthCheck="${httpStatusCheck}"/>
</health:SetLogLevel>
Constructor and Description |
---|
SetLogLevel() |
Modifier and Type | Method and Description |
---|---|
void |
addLogger(java.lang.String logger) |
HealthActionResult |
doActionImpl(HealthEvent healthEvent) |
java.util.logging.Level |
getLevel() |
java.util.List<java.lang.String> |
getLoggers() |
long |
getTime() |
void |
init() |
void |
setLevel(java.util.logging.Level level) |
void |
setLevel(java.lang.String level) |
void |
setLoggers(java.util.List<java.lang.String> loggers) |
void |
setTime(Period time) |
void |
setTimeMillis(long time) |
add, addListener, doAction, getPredicates, start, stop, toString
public java.util.List<java.lang.String> getLoggers()
@Configurable public void setLoggers(java.util.List<java.lang.String> loggers)
@Configurable public void addLogger(java.lang.String logger)
public java.util.logging.Level getLevel()
@Configurable public void setLevel(java.util.logging.Level level)
@Configurable public void setLevel(java.lang.String level)
public long getTime()
@Configurable public void setTime(Period time)
@Configurable public void setTimeMillis(long time)
@PostConstruct public void init()
init
in class AbstractHealthAction
public HealthActionResult doActionImpl(HealthEvent healthEvent) throws java.lang.Exception
doActionImpl
in class AbstractHealthAction
java.lang.Exception