public interface Loggable
| Modifier and Type | Method and Description |
|---|---|
String |
getLog()
Get logs of a resource
|
String |
getLog(boolean isPretty)
Get logs with pretty enabled
|
InputStream |
getLogInputStream()
Get a InputStream for reading logs
|
Reader |
getLogReader()
Get a Reader for reading logs
|
LogWatch |
watchLog()
Watch logs of a resource.
|
LogWatch |
watchLog(OutputStream out)
Watch logs of resource and put them inside OutputStream inside
Should not be called with a PipedOutputStream - use watchLog() instead |
Loggable |
withLogWaitTimeout(Integer logWaitTimeout)
Deprecated.
|
Loggable |
withReadyWaitTimeout(Integer timeout)
While waiting for Pod logs, how long shall we wait until a Pod
becomes ready or terminal and starts producing logs
|
String getLog()
String getLog(boolean isPretty)
isPretty - whether we need logs with pretty output or notInputStream getLogInputStream()
InputStream log input streamLogWatch watchLog()
LogWatch.getOutput() to obtain the streamLogWatch watchLog(OutputStream out)
PipedOutputStream - use watchLog() insteadout - OutputStream for storing logs@Deprecated Loggable withLogWaitTimeout(Integer logWaitTimeout)
withReadyWaitTimeout(Integer)logWaitTimeout - timeout in millisecondsLoggable for fetching logsCopyright © 2015–2024 Red Hat. All rights reserved.