Defining basic data structures for log.