Add a function that record logs.