Added initialize and finalize to LogProcessor

Some users of LogProcessor need them to initialize and finalize some
data structures on a new log file.