You can log to a file using the file notify integration:
Or you can log directly to the HA log using the logbook.log service:
logbook.log