ERROR: function logextract(integer, integer) does not existLINE 1: select logextract(20160901,20161001);
So change the constants you are passing into your function to text (i.e., surrounding them with single quotes) so it matches the new function signature.
There exists an element of understanding the options you are being given and adapting if something basic like this is overlooked.
David J.