'log' command implementation, unfinished.