Write notify message in first line of log (top of file)

Hello, I would like to write a message in a file with an automation.
In principle no problem, but only in the last line.
How to write this in the first line so that the most recent messages are at the beginning of the file?

service: notify.homeassistantlog
message: >-
{{ now().strftime(’%Y-%m-%d’) }} {{ now().strftime(’%H:%M:%S’) }} - {{
trigger.to_state.attributes.friendly_name }} wurde verwendet und auf
Position “{{ trigger.to_state.state }}” bewegt!
title: HomeAssistantLOG