dashpay / platform

L2 solution for seriously fast decentralized applications for the Dash network
https://dashplatform.readme.io/docs/introduction-what-is-dash-platform
MIT License
72 stars 39 forks source link

feat(dashmate): add `logs` command #1524

Open pshenmic opened 1 year ago

pshenmic commented 1 year ago

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]

MuhtasimTanmoy commented 11 months ago

I would like to work on this. Any suggested implementation guidelines?

pshenmic commented 11 months ago

Hey @MuhtasimTanmoy, that's awesome! Feel free to reach me out in Discord, and we'll handle that.

https://discord.gg/ncN4BH3jpC

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