Install
openclaw skills install cmdloggerExecute commands with full I/O logging. Use when users need to record the complete execution of a command including stdin, stdout, and stderr to a log file while maintaining real-time console output. Triggered by requests to log, record, monitor, or trace command execution, especially for builds, long-running scripts, debugging sessions, or CI/CD processes.
openclaw skills install cmdloggerExecute a command and log all stdin, stdout, stderr to a file while forwarding I/O to console in real-time.
# Log command execution to default file (io_log.log in script directory)
cmdlogger <command> [args...]
# Specify custom log file path
cmdlogger --log-path <log_path> <command> [args...]
# Log CMake configuration
cmdlogger --log-path cmake_config.log cmake ..
# Log build process
cmdlogger --log-path build.log make -j$(nproc)
# Log Python script execution
cmdlogger --log-path script_run.log python3 my_script.py --arg1 value1
# Log shell script execution
cmdlogger --log-path deploy.log ./deploy.sh production
# Log GDB debug session
cmdlogger --log-path debug_session.log gdb ./my_program
# Log Python interactive session
cmdlogger --log-path python_debug.log python3 -i my_module.py
# Log curl request with verbose output
cmdlogger --log-path api_test.log curl -v https://api.example.com/data
# Log SSH connection process
cmdlogger --log-path ssh_session.log ssh user@remote-host
# Log git status
cmdlogger git status
# Log echo command
cmdlogger echo "Hello World"
| Argument | Description |
|---|---|
command | The command to execute |
[args...] | Command arguments |
--log-path <path> | Optional log file path. Default: io_log.log in script directory |
Each line in the log file is prefixed with stream type:
输入: <content> - Standard input输出: <content> - Standard output错误: <content> - Standard errorRunning cmdlogger echo "Hello World" produces:
输出: Hello World
Running cmdlogger python3 -c "import sys; print('stdout'); print('stderr', file=sys.stderr)" produces:
输出: stdout
错误: stderr
--log-path is not specified, log file is created in the script directory as io_log.log.