Add PRI calculation to log parsing.