The CDK regtest environment now integrates with mprocs
to provide a beautiful TUI (Terminal User Interface) for monitoring all component logs in real-time.
mprocs
is a TUI for running multiple processes and monitoring their output. Perfect for development environments where you need to watch logs from multiple services simultaneously.
mprocs
and offers to install it if missingjust regtest
# After setup completes, mprocs launches automatically
# Mints start and log to files, mprocs shows log contents
just regtest-mprocs
# After setup, mprocs starts with mint processes stopped
# Use 's' key to start individual mints
# Full process control from within mprocs
# Start environment without mprocs
just regtest
# In another terminal, launch mprocs
just regtest-logs
just regtest # Starts environment and mprocs (log tailing mode)
just regtest-mprocs # Starts environment with direct process management
just regtest-logs # Manual mprocs launch (adapts to current mode)
If mprocs
is not installed:
# Automatic installation prompt when running regtest
just regtest
# Manual installation
cargo install mprocs
# Or via package manager (varies by OS)
# Ubuntu/Debian: apt install mprocs
# macOS: brew install mprocs
The mprocs configuration is automatically generated at $CDK_ITESTS_DIR/mprocs.yaml
. It includes:
tail -f
different log files┌─Processes─────────┬─Output───────────────────────────────────────┐
│ ● cln-mint │ 2024-07-08T08:30:12 INFO cdk_mintd: Starting │
│ ● lnd-mint │ mint server on 127.0.0.1:8085 │
│ ● bitcoind │ 2024-07-08T08:30:13 INFO: New invoice │
│ ● cln-one │ received for 1000 sats │
│ ● cln-two │ 2024-07-08T08:30:14 INFO: Payment │
│ ● lnd-one │ successful │
│ ● lnd-two │ │
│ │ │
└───────────────────┴──────────────────────────────────────────────┘
If mprocs is not available or fails:
just
commands work as expectedjust regtest-logs
This integration makes CDK development much more pleasant by providing professional-grade log monitoring out of the box! 🎉