better log formating, cmdLog buffer