Support periodic jobs in log custom function

Change-Id: Ice4db15fd16e0eea886ddc5f793d49693a0a9986
Merge "Support periodic jobs in log custom function"