[log] replace tmplog by std::cout