Debugging distributed applications can be tricky. Fortunately, iofogctl makes it easy to find out what each of our microservices are doing.
Streaming logs: Agent and microservice logs can also be streamed via WebSocket (exec-style session), so you can tail logs in real time without polling. This is supported in ECN-Viewer (browser-based terminal and log views) and in iofogctl (e.g. when using log or exec-style commands). The same WebSocket channel is used for interactive exec sessions and log streaming.
With the logs command, we can use iofogctl to inspect the output of each microservice's container:
iofogctl logs microservice AppName/NAMEIf we have issues getting logs, its a good idea to check the status of the respective microservice:
iofogctl get microservicesNAMESPACE
default
MICROSERVICE STATUS AGENT ROUTES VOLUMES PORTS
msvc-1 RUNNING agent-1 route-1 /tmp/msvc:/tmp
msvc-2 DELETING agent-2 /tmp/iofog:/data 5000:80