Add function to process logs