Class PodLogs

  • All Implemented Interfaces:
    ServiceLogs

    public class PodLogs
    extends Object
    implements ServiceLogs
    Concrete implementation of ServiceLogs for 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 selected PrintStream. Each log is prefixed with namespace.pod-name.container-name and colored differently.
    • Method Detail

      • start

        public void start()
        Start watching Pods logs in all the specified namespaces
        Specified by:
        start in interface ServiceLogs
      • stop

        public void stop()
        Stop watching Pods logs in all specified namespaces
        Specified by:
        stop in interface ServiceLogs