com.caucho.health.action
Class SetLogLevel

java.lang.Object
  extended by com.caucho.health.action.AbstractHealthAction
      extended by 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>
 


Constructor Summary
SetLogLevel()
           
 
Method Summary
 void addLogger(java.lang.String logger)
           
 void 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)
           
 
Methods inherited from class com.caucho.health.action.AbstractHealthAction
add, addListener, doAction, getPredicates, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetLogLevel

public SetLogLevel()
Method Detail

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