Log command invocations and results.