org-add-log-setup

org-add-log-setup is a compiled Lisp function in `org.el'.

(org-add-log-setup &optional PURPOSE STATE PREV-STATE FINDPOS HOW EXTRA)

Set up the post command hook to take a note.
If this is about to TODO state change, the new state is expected in STATE.
When FINDPOS is non-nil, find the correct position for the note in
the current entry. If not, assume that it can be inserted at point.
HOW is an indicator what kind of note should be created.
EXTRA is additional text that will be inserted into the notes buffer.