com.caucho.health.action
Class SetLogLevel
java.lang.Object
com.caucho.health.action.AbstractHealthAction
com.caucho.health.action.SetLogLevel
- All Implemented Interfaces:
- HealthAction
@Singleton
@Configurable
public class SetLogLevel
- extends AbstractHealthAction
Health action to change a log level, optionally temporarily.
<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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SetLogLevel
public SetLogLevel()
getLoggers
public java.util.List<java.lang.String> getLoggers()
setLoggers
@Configurable
public void setLoggers(java.util.List<java.lang.String> loggers)
addLogger
@Configurable
public void addLogger(java.lang.String logger)
getLevel
public java.util.logging.Level getLevel()
setLevel
@Configurable
public void setLevel(java.util.logging.Level level)
setLevel
@Configurable
public void setLevel(java.lang.String level)
getTime
public long getTime()
setTime
@Configurable
public void setTime(Period time)
setTimeMillis
@Configurable
public void setTimeMillis(long time)
init
@PostConstruct
public void init()
- Overrides:
init in class AbstractHealthAction
doActionImpl
public void doActionImpl(HealthEvent healthEvent)
- Specified by:
doActionImpl in class AbstractHealthAction