Package io.fabric8.kubernetes.client.dsl
Interface Loggable<W>
-
- Type Parameters:
W- returns a LogWatch for watching logs
- All Known Subinterfaces:
BytesLimitTerminateTimeTailPrettyLoggable<W>,ContainerResource<W,I,PI,O,PO,X,T,B,IS,UB>,PodResource<T>,PrettyLoggable<W>,RollableScalableResource<T>,ScalableResource<T>,TailPrettyLoggable<W>,TerminateTimeTailPrettyLoggable<W>,TimestampBytesLimitTerminateTimeTailPrettyLoggable<W>,TimeTailPrettyLoggable<W>
- All Known Implementing Classes:
DeploymentOperationsImpl,DeploymentOperationsImpl,JobOperationsImpl,PodOperationsImpl,ReplicaSetOperationsImpl,ReplicaSetOperationsImpl,ReplicationControllerOperationsImpl,RollableScalableResourceOperation,StatefulSetOperationsImpl
public interface Loggable<W>Loggable interface for all resources which produce logs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLog()Get logs of a resourceStringgetLog(Boolean isPretty)Get logs with pretty enabledReadergetLogReader()Get a Reader for reading logsWwatchLog()Watch logs of a resourceWwatchLog(OutputStream out)Watch logs of resource and put them inside OutputStream insideLoggable<W>withLogWaitTimeout(Integer logWaitTimeout)While waiting for Pod logs, how long shall we wait until a Pod becomes ready and starts producing logs
-
-
-
Method Detail
-
getLog
String getLog()
Get logs of a resource- Returns:
- logs as string
-
getLog
String getLog(Boolean isPretty)
Get logs with pretty enabled- Parameters:
isPretty- whether we need logs with pretty output or not- Returns:
- logs as string
-
watchLog
W watchLog()
Watch logs of a resource- Returns:
- returns a Closeable interface for log watch
-
watchLog
W watchLog(OutputStream out)
Watch logs of resource and put them inside OutputStream inside- Parameters:
out-OutputStreamfor storing logs- Returns:
- returns a Closeable interface for log watch
-
-