Add an example for log actions of a function.