Class PodLogs
- java.lang.Object
-
- cz.xtf.core.service.logs.streaming.k8s.PodLogs
-
- All Implemented Interfaces:
ServiceLogs
public class PodLogs extends Object implements ServiceLogs
Concrete implementation ofServiceLogsfor the Cloud/k8s environment, i.e. it deals with services running on Pods. Watches Pods on multiple namespaces and streams logs for all Pods containers to the selectedPrintStream. Each log is prefixed withnamespace.pod-name.container-nameand colored differently.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPodLogs.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart()Start watching Pods logs in all the specified namespacesvoidstop()Stop watching Pods logs in all specified namespaces
-
-
-
Method Detail
-
start
public void start()
Start watching Pods logs in all the specified namespaces- Specified by:
startin interfaceServiceLogs
-
stop
public void stop()
Stop watching Pods logs in all specified namespaces- Specified by:
stopin interfaceServiceLogs
-
-