Esphome from automation

Hi
I have an esp32 with esphome
i created an automation
one point : is it possible from this automation to write into the esphomelog ?
if yes how?
thx