include iostream in log.h