Yep!
```button
name Add Log
type prepend template
action Log Template
```
One tricky bit is that buttons show in preview but you want to be in edit to write in the log. You can use Templater to switch into edit mode and put the cursor at the log entry point.
Add this to you Log Template if you want that
<%*
app.workspace.activeLeaf.setViewState({type: “markdown”, state: {file: app.workspace.activeLeaf.getViewState().state.file, mode: “source”}})
%>
And then put <% tp.file.cursor %> at the point you want to start writing.