Write info into log file from automation

Hello,
I often use the service logbook.log in order to know the step executed into an automation.
I am looking for something like this but I need to write inside the log file homeassistant.log

Often when I debug automations I use:

tail -f homeassistan.log

and it could be useful to see which step is executed in real time.

Thanks.