feat(dashmate): add `logs` command
pshenmic opened this issue · 2 comments
Expected Behavior
Dashmate should have a command to read latest logs from the service container to have a way to debug stuff when its not going right
Current Behavior
User have to type docker ps
, find the right container id of the service, and execute docker logs $container_id
Possible Solution
Add command that will stream out the logs in the command line. For example dashmate core logs [-f]
I would like to work on this. Any suggested implementation guidelines?
Hey @MuhtasimTanmoy, that's awesome! Feel free to reach me out in Discord, and we'll handle that.
Implementation should be pretty straight-forward. We use dockerode
and docker-compose
to communicate with docker, and as I can see there is already a such method https://github.com/dashpay/docker-compose
You will need to add a new command that will implement that for the given node config. Look at the packages/dashmate/src/commands
how we usually do that