Adding in-process logging