log generator + file