used to process log.