|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.schmant.support.io.LoggingProcessOutputStrategy
public class LoggingProcessOutputStrategy
This is a ProcessOutputStrategy that logs the output of the monitored
process to the current log Report with a
configurable log level.
| Constructor Summary | |
|---|---|
LoggingProcessOutputStrategy(Level l)
Create a logging process output strategy that will log output to the supplied Level. |
|
LoggingProcessOutputStrategy(Level l,
long pollInterval)
Create a logging process output strategy that will log output to the supplied Level. |
|
| Method Summary | |
|---|---|
Level |
getLevel()
Get the log level. |
ProcessOutputListener |
getOutputListener()
Create a new process output listener for listening to a process. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LoggingProcessOutputStrategy(Level l)
Level. The monitored process is monitored for output
with the default polling interval. (see
AbstractProcessOutputListener)
l - The log level.
public LoggingProcessOutputStrategy(Level l,
long pollInterval)
Level. The monitored process is monitored for output
with the provided polling interval.
l - The log level.pollInterval - The polling interval in milliseconds.| Method Detail |
|---|
public Level getLevel()
public ProcessOutputListener getOutputListener()
ProcessOutputStrategy
getOutputListener in interface ProcessOutputStrategypublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||