Buttons + custom log entries?

For me that’s exactly what I want. Just a sensor that stores the datetime when the button was pressed. Then I should be able to go back in the log book and see the times it was set to.