so, this is the UDF portion?:

function ReadEventlog()
endfunction